![]() |
digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
|
Signals | |
void | signalColorLabelChanged (int) |
Public Member Functions | |
ColorLabelWidget (QWidget *const parent=nullptr) | |
QList< ColorLabel > | colorLabels () const |
Return the list of Color Label buttons turned on or an empty list of none. | |
void | setButtonsExclusive (bool b) |
Set all Color Label buttons exclusive or not. | |
void | setColorLabels (const QList< ColorLabel > &list) |
Turn on Color Label buttons using list. | |
void | setDescriptionBoxVisible (bool b) |
Show or not on the bottom view the description of label with shortcuts. | |
![]() | |
DVBox (QWidget *const parent=nullptr) | |
![]() | |
DHBox (QWidget *const parent=nullptr) | |
QSize | minimumSizeHint () const override |
void | setContentsMargins (const QMargins &margins) |
void | setContentsMargins (int left, int top, int right, int bottom) |
void | setSpacing (int space) |
void | setStretchFactor (QWidget *const widget, int stretch) |
QSize | sizeHint () const override |
Static Public Member Functions | |
static QIcon | buildIcon (ColorLabel label, int size=12) |
static QColor | labelColor (ColorLabel label) |
static QString | labelColorName (ColorLabel label) |
Protected Member Functions | |
bool | eventFilter (QObject *obj, QEvent *ev) override |
![]() | |
DHBox (bool vertical, QWidget *const parent) | |
void | childEvent (QChildEvent *e) override |
void Digikam::ColorLabelWidget::setButtonsExclusive | ( | bool | b | ) |
Default is true as only one can be selected. Non-exclusive mode is dedicated for Advanced Search tool.
void Digikam::ColorLabelWidget::setColorLabels | ( | const QList< ColorLabel > & | list | ) |
Pass an empty list to clear all selection.