2013-12-15 14:13:49 +00:00
|
|
|
#ifndef COMPONENTLISTWIDGET_HPP
|
|
|
|
#define COMPONENTLISTWIDGET_HPP
|
|
|
|
|
|
|
|
#include <QListWidget>
|
|
|
|
|
|
|
|
class ComponentListWidget : public QListWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
Q_PROPERTY(QStringList mCheckedItems READ checkedItems)
|
|
|
|
|
|
|
|
public:
|
2020-11-13 07:39:47 +00:00
|
|
|
ComponentListWidget(QWidget* parent = nullptr);
|
2013-12-15 14:13:49 +00:00
|
|
|
|
|
|
|
QStringList mCheckedItems;
|
|
|
|
QStringList checkedItems();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void checkedItemsChanged(const QStringList& items);
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void updateCheckedItems(QListWidgetItem* item);
|
2014-01-28 12:27:09 +00:00
|
|
|
void updateCheckedItems(const QModelIndex& index, int start, int end);
|
2013-12-15 14:13:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // COMPONENTLISTWIDGET_HPP
|