21 #ifndef ITEMSDIALOGLIST_H
22 #define ITEMSDIALOGLIST_H
24 #ifndef DOXYGEN_NOTFOR_DEVEL
26 #include <tulip/tulipconf.h>
28 #include <QListWidget>
38 class TLP_QT_SCOPE ItemsListWidget :
public QListWidget {
43 ItemsListWidget(QWidget *parent =
nullptr,
const unsigned int maxListSize = 0);
48 bool addItemList(QString item);
50 void deleteItemList(QListWidgetItem *item);
54 void setMaxListSize(
const unsigned int maxListSize) {
55 this->maxListSize = maxListSize;
57 unsigned int getMaxListSize()
const {
62 void mousePressEvent(QMouseEvent *event)
override;
63 void mouseMoveEvent(QMouseEvent *event)
override;
64 void dragEnterEvent(QDragEnterEvent *event)
override;
65 void dragMoveEvent(QDragMoveEvent *event)
override;
66 void dropEvent(QDropEvent *event)
override;
69 void beginDrag(QListWidgetItem *item);
70 void changeStatus(QListWidgetItem *item);
71 void dragMoveOrEnterEvent(QDragMoveEvent *event);
73 QHash<QString, itemInfo> hashDataBase;
74 unsigned int maxListSize;