digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
Loading...
Searching...
No Matches
Digikam::ColorLabelWidget Class Reference
+ Inheritance diagram for Digikam::ColorLabelWidget:

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.
 
- Public Member Functions inherited from Digikam::DVBox
 DVBox (QWidget *const parent=nullptr)
 
- Public Member Functions inherited from Digikam::DHBox
 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
 
- Protected Member Functions inherited from Digikam::DHBox
 DHBox (bool vertical, QWidget *const parent)
 
void childEvent (QChildEvent *e) override
 

Member Function Documentation

◆ setButtonsExclusive()

void Digikam::ColorLabelWidget::setButtonsExclusive ( bool  b)

Default is true as only one can be selected. Non-exclusive mode is dedicated for Advanced Search tool.

◆ setColorLabels()

void Digikam::ColorLabelWidget::setColorLabels ( const QList< ColorLabel > &  list)

Pass an empty list to clear all selection.