2025-09-05 20:54:06 +00:00
|
|
|
#ifndef XTREEWIDGET_H
|
|
|
|
|
#define XTREEWIDGET_H
|
|
|
|
|
|
|
|
|
|
#include <QTreeWidget>
|
|
|
|
|
|
|
|
|
|
class XTreeWidget : public QTreeWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2026-01-01 22:18:51 -05:00
|
|
|
|
2025-09-05 20:54:06 +00:00
|
|
|
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
|