|
Krita Source Code Documentation
|
#include <WGColorPreviewToolTip.h>
Inheritance diagram for WGColorPreviewToolTip:Public Member Functions | |
| void | setCurrentColor (const QColor &color) |
| void | setLastUsedColor (const QColor &color) |
| void | setPreviousColor (const QColor &color) |
| void | show (const QWidget *focus=nullptr) |
| void | updatePosition (const QWidget *focus) |
| WGColorPreviewToolTip (QWidget *parent=nullptr) | |
Static Public Member Functions | |
| static qreal | estimateBrightness (QColor col) |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *e) override |
Private Attributes | |
| QIcon | m_brushIcon |
| QColor | m_color |
| QColor | m_lastUsedColor |
| QColor | m_previousColor |
Definition at line 17 of file WGColorPreviewToolTip.h.
|
explicit |
Definition at line 18 of file WGColorPreviewToolTip.cpp.
References m_brushIcon.
|
static |
Definition at line 59 of file WGColorPreviewToolTip.cpp.
|
overrideprotected |
Definition at line 67 of file WGColorPreviewToolTip.cpp.
References estimateBrightness(), m_brushIcon, m_color, m_lastUsedColor, and m_previousColor.
|
inline |
Definition at line 31 of file WGColorPreviewToolTip.h.
References m_color.
|
inline |
Definition at line 43 of file WGColorPreviewToolTip.h.
References m_lastUsedColor.
|
inline |
Definition at line 37 of file WGColorPreviewToolTip.h.
References m_previousColor.
|
inline |
Definition at line 23 of file WGColorPreviewToolTip.h.
References updatePosition().
| void WGColorPreviewToolTip::updatePosition | ( | const QWidget * | focus | ) |
Definition at line 37 of file WGColorPreviewToolTip.cpp.
|
private |
Definition at line 57 of file WGColorPreviewToolTip.h.
|
private |
Definition at line 54 of file WGColorPreviewToolTip.h.
|
private |
Definition at line 56 of file WGColorPreviewToolTip.h.
|
private |
Definition at line 55 of file WGColorPreviewToolTip.h.