digiKam
|
Public Member Functions | |
Qt::ArrowType | arrowDirection () const |
QRect | contentsRect () const |
DSelector (Qt::Orientation o, QWidget *const parent=nullptr) | |
DSelector (QWidget *parent=nullptr) | |
bool | indent () const |
void | setArrowDirection (Qt::ArrowType direction) |
void | setIndent (bool i) |
~DSelector () override | |
Protected Member Functions | |
virtual void | drawArrow (QPainter *painter, const QPoint &pos) |
virtual void | drawContents (QPainter *) |
void | mouseMoveEvent (QMouseEvent *e) override |
void | mousePressEvent (QMouseEvent *e) override |
void | mouseReleaseEvent (QMouseEvent *e) override |
void | paintEvent (QPaintEvent *) override |
void | wheelEvent (QWheelEvent *) override |
Properties | |
Qt::ArrowType | arrowDirection |
bool | indent |
int | maxValue |
int | minValue |
int | value |
Friends | |
class | Private |
DSelector is the base class for other widgets which provides the ability to choose from a one-dimensional range of values. An example is the KGradientSelector which allows to choose from a range of colors.
A custom drawing routine for the widget surface has to be provided by the subclass.
|
explicit |
|
explicit |
References setArrowDirection().
|
override |
Qt::ArrowType Digikam::DSelector::arrowDirection | ( | ) | const |
QRect Digikam::DSelector::contentsRect | ( | ) | const |
References arrowDirection, and indent.
Referenced by Digikam::DColorValueSelector::drawContents(), and Digikam::DColorValueSelector::drawPalette().
|
protectedvirtual |
Override this function to draw the cursor which indicates the current value.
Referenced by paintEvent().
|
inlineprotectedvirtual |
Override this function to draw the contents of the control. The default implementation does nothing.
Draw only within contentsRect().
Reimplemented in Digikam::DColorValueSelector.
Referenced by paintEvent().
bool Digikam::DSelector::indent | ( | ) | const |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
References drawArrow(), drawContents(), indent, and value.
void Digikam::DSelector::setArrowDirection | ( | Qt::ArrowType | direction | ) |
Sets the arrow direction.
Referenced by DSelector().
void Digikam::DSelector::setIndent | ( | bool | i | ) |
Sets the indent option of the widget to i. This determines whether a shaded frame is drawn.
|
overrideprotected |
References value.
|
friend |
|
readwrite |
Referenced by contentsRect().
|
readwrite |
Referenced by contentsRect(), and paintEvent().
|
readwrite |
|
readwrite |
|
readwrite |