|
Krita Source Code Documentation
|
#include <smallcolorselector_dock.h>
Inheritance diagram for SmallColorSelectorDock:Public Slots | |
| void | canvasResourceChanged (int, const QVariant &) |
| void | colorChangedProxy (const KoColor &) |
Public Member Functions | |
| QString | observerName () override |
| void | setCanvas (KoCanvasBase *canvas) override |
| reimplemented from KoCanvasObserverBase | |
| SmallColorSelectorDock () | |
| void | unsetCanvas () override |
Public Member Functions inherited from KoCanvasObserverBase | |
| KoCanvasObserverBase () | |
| KoCanvasBase * | observedCanvas () const |
| void | setObservedCanvas (KoCanvasBase *canvas) |
| void | unsetObservedCanvas () |
| virtual | ~KoCanvasObserverBase () |
Private Attributes | |
| QPointer< KoCanvasBase > | m_canvas |
| KisSmallColorWidget * | m_smallColorWidget |
Additional Inherited Members |
Definition at line 19 of file smallcolorselector_dock.h.
| SmallColorSelectorDock::SmallColorSelectorDock | ( | ) |
Definition at line 19 of file smallcolorselector_dock.cc.
References colorChangedProxy(), connect(), and m_smallColorWidget.
|
slot |
Definition at line 68 of file smallcolorselector_dock.cc.
References KoCanvasResource::ForegroundColor, m_canvas, m_smallColorWidget, KisSmallColorWidget::setColor(), and v.
Definition at line 62 of file smallcolorselector_dock.cc.
References m_canvas.
|
inlineoverridevirtual |
Reimplemented from KoCanvasObserverBase.
Definition at line 24 of file smallcolorselector_dock.h.
|
overridevirtual |
reimplemented from KoCanvasObserverBase
Implements KoCanvasObserverBase.
Definition at line 40 of file smallcolorselector_dock.cc.
References canvasResourceChanged(), connect(), KisCanvas2::displayColorConverter, KoColorSpaceRegistry::instance(), KIS_ASSERT, m_canvas, m_smallColorWidget, KisSmallColorWidget::setColor(), and KisSmallColorWidget::setDisplayColorConverter().
|
inlineoverridevirtual |
Re-implement to notify the observer that its canvas is no longer among the living. The daisies, it is pushing up. This means you don't have to disconnect, it's dead.
The old canvas should be deleted already, so if you stored a pointer to it, don't touch!
Note that currently there is a bug where in certain specific circumstances unsetCanvas can be called when it shouldn't, see for example KWStatisticsDocker for a workaround for this problem.
Implements KoCanvasObserverBase.
Definition at line 27 of file smallcolorselector_dock.h.
References m_canvas.
|
private |
Definition at line 33 of file smallcolorselector_dock.h.
|
private |
Definition at line 32 of file smallcolorselector_dock.h.