You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
578 B
C++
27 lines
578 B
C++
#ifndef COMPONENTLISTWIDGET_HPP
|
|
#define COMPONENTLISTWIDGET_HPP
|
|
|
|
#include <QListWidget>
|
|
|
|
class ComponentListWidget : public QListWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
Q_PROPERTY(QStringList mCheckedItems READ checkedItems)
|
|
|
|
public:
|
|
ComponentListWidget(QWidget *parent = 0);
|
|
|
|
QStringList mCheckedItems;
|
|
QStringList checkedItems();
|
|
|
|
signals:
|
|
void checkedItemsChanged(const QStringList &items);
|
|
|
|
private slots:
|
|
void updateCheckedItems(QListWidgetItem *item);
|
|
void updateCheckedItems(const QModelIndex &index, int start, int end);
|
|
};
|
|
|
|
#endif // COMPONENTLISTWIDGET_HPP
|