26 lines
463 B
C++
26 lines
463 B
C++
#ifndef XTREEWIDGET_H
|
|
#define XTREEWIDGET_H
|
|
|
|
#include <QTreeWidget>
|
|
|
|
class XTreeWidget : public QTreeWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit XTreeWidget(QWidget *parent = nullptr);
|
|
|
|
signals:
|
|
void ItemSelected(const QString itemText);
|
|
void ItemClosed(const QString itemText);
|
|
void Cleared();
|
|
|
|
protected:
|
|
void ItemSelectionChanged();
|
|
void PrepareContextMenu(const QPoint &pos);
|
|
|
|
private:
|
|
};
|
|
|
|
#endif // XTREEWIDGET_H
|