Changeset View
Changeset View
Standalone View
Standalone View
tools/selection/image/kpAbstractImageSelectionTool.cpp
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | |||||
50 | //--------------------------------------------------------------------- | 50 | //--------------------------------------------------------------------- | ||
51 | 51 | | |||
52 | // protected virtual [kpAbstractSelectionTool] | 52 | // protected virtual [kpAbstractSelectionTool] | ||
53 | kpAbstractSelectionContentCommand *kpAbstractImageSelectionTool::newGiveContentCommand () const | 53 | kpAbstractSelectionContentCommand *kpAbstractImageSelectionTool::newGiveContentCommand () const | ||
54 | { | 54 | { | ||
55 | kpAbstractImageSelection *imageSel = document ()->imageSelection (); | 55 | kpAbstractImageSelection *imageSel = document ()->imageSelection (); | ||
56 | Q_ASSERT (imageSel && !imageSel->hasContent ()); | 56 | Q_ASSERT (imageSel && !imageSel->hasContent ()); | ||
57 | 57 | | |||
58 | if (imageSel->transparency ().isTransparent ()) | 58 | if (imageSel->transparency ().isTransparent ()) { | ||
59 | environ ()->flashColorSimilarityToolBarItem (); | 59 | environ ()->flashColorSimilarityToolBarItem (); | ||
60 | } | ||||
60 | 61 | | |||
61 | return new kpToolSelectionPullFromDocumentCommand ( | 62 | return new kpToolSelectionPullFromDocumentCommand ( | ||
62 | *imageSel, | 63 | *imageSel, | ||
63 | environ ()->backgroundColor (), | 64 | environ ()->backgroundColor (), | ||
64 | QString()/*uninteresting child of macro cmd*/, | 65 | QString()/*uninteresting child of macro cmd*/, | ||
65 | environ ()->commandEnvironment ()); | 66 | environ ()->commandEnvironment ()); | ||
66 | } | 67 | } | ||
67 | 68 | | |||
Show All 35 Lines |