digiKam
|
Signals | |
void | signalItemExpanded (int index, bool b) |
void | signalItemToggled (int index, bool b) |
Public Member Functions | |
void | addItem (QWidget *const w, const QIcon &icon, const QString &txt, const QString &objName, bool expandBydefault) |
void | addItem (QWidget *const w, const QString &txt, const QString &objName, bool expandBydefault) |
void | addStretch () |
bool | checkBoxIsVisible (int index) const |
int | count () const |
DExpanderBox (QWidget *const parent=nullptr) | |
int | indexOf (DLabelExpander *const widget) const |
void | insertItem (int index, QWidget *const w, const QIcon &icon, const QString &txt, const QString &objName, bool expandBydefault) |
void | insertItem (int index, QWidget *const w, const QString &txt, const QString &objName, bool expandBydefault) |
void | insertStretch (int index) |
bool | isChecked (int index) const |
bool | isItemEnabled (int index) const |
bool | isItemExpanded (int index) const |
QIcon | itemIcon (int index) const |
QString | itemText (int index) const |
QString | itemToolTip (int index) const |
virtual void | readSettings (KConfigGroup &group) |
void | removeItem (int index) |
void | setCheckBoxVisible (int index, bool b) |
void | setChecked (int index, bool b) |
void | setItemEnabled (int index, bool enabled) |
void | setItemExpanded (int index, bool b) |
void | setItemIcon (int index, const QIcon &icon) |
void | setItemText (int index, const QString &txt) |
void | setItemToolTip (int index, const QString &tip) |
DLabelExpander * | widget (int index) const |
virtual void | writeSettings (KConfigGroup &group) |
~DExpanderBox () override | |
|
explicit |
References main().
|
override |
void Digikam::DExpanderBox::addItem | ( | QWidget *const | w, |
const QIcon & | icon, | ||
const QString & | txt, | ||
const QString & | objName, | ||
bool | expandBydefault | ||
) |
Add DLabelExpander item at end of box layout with these settings : 'w' : the widget hosted by DLabelExpander. 'pix' : pixmap used as icon to item title. 'txt' : text used as item title. 'objName' : item object name used to read/save expanded settings to rc file. 'expandBydefault' : item state by default (expanded or not).
Referenced by addItem(), Digikam::ImportItemPropertiesTab::ImportItemPropertiesTab(), Digikam::DRawDecoderWidget::setup(), and Digikam::TemplateViewer::TemplateViewer().
void Digikam::DExpanderBox::addItem | ( | QWidget *const | w, |
const QString & | txt, | ||
const QString & | objName, | ||
bool | expandBydefault | ||
) |
References addItem().
void Digikam::DExpanderBox::addStretch | ( | ) |
bool Digikam::DExpanderBox::checkBoxIsVisible | ( | int | index | ) | const |
int Digikam::DExpanderBox::count | ( | ) | const |
Referenced by indexOf(), readSettings(), Digikam::DRawDecoderWidget::updateMinimumWidth(), and writeSettings().
int Digikam::DExpanderBox::indexOf | ( | DLabelExpander *const | widget | ) | const |
void Digikam::DExpanderBox::insertItem | ( | int | index, |
QWidget *const | w, | ||
const QIcon & | icon, | ||
const QString & | txt, | ||
const QString & | objName, | ||
bool | expandBydefault | ||
) |
Insert DLabelExpander item at box layout index with these settings : 'w' : the widget hosted by DLabelExpander. 'pix' : pixmap used as icon to item title. 'txt' : text used as item title. 'objName' : item object name used to read/save expanded settings to rc file. 'expandBydefault' : item state by default (expanded or not).
Referenced by insertItem(), Digikam::ItemPropertiesTab::ItemPropertiesTab(), and Digikam::ItemSelectionPropertiesTab::ItemSelectionPropertiesTab().
void Digikam::DExpanderBox::insertItem | ( | int | index, |
QWidget *const | w, | ||
const QString & | txt, | ||
const QString & | objName, | ||
bool | expandBydefault | ||
) |
References insertItem().
void Digikam::DExpanderBox::insertStretch | ( | int | index | ) |
bool Digikam::DExpanderBox::isChecked | ( | int | index | ) | const |
bool Digikam::DExpanderBox::isItemEnabled | ( | int | index | ) | const |
bool Digikam::DExpanderBox::isItemExpanded | ( | int | index | ) | const |
References Digikam::DLabelExpander::isExpanded().
QIcon Digikam::DExpanderBox::itemIcon | ( | int | index | ) | const |
QString Digikam::DExpanderBox::itemText | ( | int | index | ) | const |
QString Digikam::DExpanderBox::itemToolTip | ( | int | index | ) | const |
|
virtual |
Reimplemented in Digikam::DRawDecoderWidget.
References count(), Digikam::DLabelExpander::isExpandByDefault(), and Digikam::DLabelExpander::setExpanded().
Referenced by Digikam::ItemPropertiesSideBar::doLoadState(), and Digikam::DRawDecoderWidget::readSettings().
void Digikam::DExpanderBox::removeItem | ( | int | index | ) |
Referenced by Digikam::DRawDecoderWidget::setup().
void Digikam::DExpanderBox::setCheckBoxVisible | ( | int | index, |
bool | b | ||
) |
void Digikam::DExpanderBox::setChecked | ( | int | index, |
bool | b | ||
) |
void Digikam::DExpanderBox::setItemEnabled | ( | int | index, |
bool | enabled | ||
) |
void Digikam::DExpanderBox::setItemExpanded | ( | int | index, |
bool | b | ||
) |
References Digikam::DLabelExpander::setExpanded().
void Digikam::DExpanderBox::setItemIcon | ( | int | index, |
const QIcon & | icon | ||
) |
void Digikam::DExpanderBox::setItemText | ( | int | index, |
const QString & | txt | ||
) |
void Digikam::DExpanderBox::setItemToolTip | ( | int | index, |
const QString & | tip | ||
) |
|
signal |
|
signal |
DLabelExpander * Digikam::DExpanderBox::widget | ( | int | index | ) | const |
|
virtual |
Reimplemented in Digikam::DRawDecoderWidget.
References count(), and Digikam::DLabelExpander::isExpanded().
Referenced by Digikam::ItemPropertiesSideBar::doSaveState(), and Digikam::DRawDecoderWidget::writeSettings().