#include <kis_brush_hud_properties_list.h>
◆ KisBrushHudPropertiesList()
| KisBrushHudPropertiesList::KisBrushHudPropertiesList |
( |
QWidget * | parent | ) |
|
Definition at line 14 of file kis_brush_hud_properties_list.cpp.
15 : QListWidget(parent),
17{
18 setDragDropMode(QAbstractItemView::DragDrop);
19 setDefaultDropAction(Qt::MoveAction);
20}
const QScopedPointer< Private > m_d
◆ ~KisBrushHudPropertiesList()
| KisBrushHudPropertiesList::~KisBrushHudPropertiesList |
( |
| ) |
|
|
override |
◆ addProperties()
Definition at line 26 of file kis_brush_hud_properties_list.cpp.
27{
29 QListWidgetItem *item = new QListWidgetItem(prop->name(), this);
30 item->setData(Qt::UserRole, prop->id());
31 addItem(item);
32 }
33}
◆ selectedPropertiesIds()
| QList< QString > KisBrushHudPropertiesList::selectedPropertiesIds |
( |
| ) |
const |
Definition at line 35 of file kis_brush_hud_properties_list.cpp.
36{
38
39 for (int i = 0; i < count(); i++) {
40 ids << item(i)->data(Qt::UserRole).toString();
41 }
42
43 return ids;
44}
◆ supportedDropActions()
| Qt::DropActions KisBrushHudPropertiesList::supportedDropActions |
( |
| ) |
const |
|
override |
◆ m_d
| const QScopedPointer<Private> KisBrushHudPropertiesList::m_d |
|
private |
The documentation for this class was generated from the following files: