#include <KisTagSelectionWidget.h>
Definition at line 100 of file KisTagSelectionWidget.h.
◆ KisTagSelectionWidget()
| KisTagSelectionWidget::KisTagSelectionWidget |
( |
QWidget * | parent = 0, |
|
|
bool | createNew = true ) |
|
explicit |
◆ ~KisTagSelectionWidget()
| KisTagSelectionWidget::~KisTagSelectionWidget |
( |
| ) |
|
|
override |
◆ setTagList() [1/2]
| void KisTagSelectionWidget::setTagList |
( |
bool | editable, |
|
|
QList< KoID > & | selected, |
|
|
QList< KoID > & | notSelected ) |
◆ setTagList() [2/2]
Definition at line 266 of file KisTagSelectionWidget.cpp.
267{
269 QLayoutItem *item;
270
273
274 while((item =
m_layout->takeAt(0))) {
275 if (item->widget()) {
277 delete item->widget();
278 }
279 }
280 delete item;
281 }
282
283
287
288 Q_FOREACH(
KoID tag, selected) {
292 }
293
294 Q_FOREACH(
KoID tag, semiSelected) {
298 }
299
302
303
306
308 }
309
312 }
313}
#define KIS_SAFE_ASSERT_RECOVER_RETURN(cond)
References connect(), KIS_SAFE_ASSERT_RECOVER_RETURN, m_addTagButton, m_editable, m_layout, WdgAddTagButton::setAvailableTagsList(), sigAddTagToSelection(), sigCreateNewTag(), sigRemoveTagFromSelection(), and slotRemoveTagFromSelection().
◆ sigAddTagToSelection
| void KisTagSelectionWidget::sigAddTagToSelection |
( |
KoID | tag | ) |
|
|
signal |
◆ sigCreateNewTag
| void KisTagSelectionWidget::sigCreateNewTag |
( |
QString | tag | ) |
|
|
signal |
◆ sigRemoveTagFromSelection
| void KisTagSelectionWidget::sigRemoveTagFromSelection |
( |
KoID | tag | ) |
|
|
signal |
◆ slotAddTagToSelection
| void KisTagSelectionWidget::slotAddTagToSelection |
( |
QAction * | action | ) |
|
|
privateslot |
◆ slotRemoveTagFromSelection
| void KisTagSelectionWidget::slotRemoveTagFromSelection |
( |
KoID | tag | ) |
|
|
privateslot |
◆ TestKisTagSelectionWidget
| friend class TestKisTagSelectionWidget |
|
friend |
◆ m_addTagButton
| QToolButton* KisTagSelectionWidget::m_addTagButton {nullptr} |
|
private |
◆ m_createNew
| bool KisTagSelectionWidget::m_createNew {true} |
|
private |
◆ m_editable
| bool KisTagSelectionWidget::m_editable {false} |
|
private |
◆ m_layout
| QLayout* KisTagSelectionWidget::m_layout {nullptr} |
|
private |
The documentation for this class was generated from the following files: