2025-11-21 19:22:41 +08:00
|
|
|
#ifndef MONITORSELECTEDITEMS_H
|
|
|
|
|
#define MONITORSELECTEDITEMS_H
|
|
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
#include <QTreeView>
|
|
|
|
|
#include <QStandardItemModel>
|
|
|
|
|
|
|
|
|
|
struct monitorRelationItem;
|
|
|
|
|
class MonitorSideBarDlg;
|
2025-11-25 20:29:32 +08:00
|
|
|
class QVBoxLayout;
|
2025-11-21 19:22:41 +08:00
|
|
|
|
|
|
|
|
class MonitorSelectedItemsDlg : public QDialog
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
MonitorSelectedItemsDlg(QWidget *parent = nullptr);
|
|
|
|
|
~MonitorSelectedItemsDlg();
|
|
|
|
|
|
|
|
|
|
void initial();
|
|
|
|
|
void updateItems();
|
2025-11-25 20:29:32 +08:00
|
|
|
public slots:
|
|
|
|
|
void onSelectionChanged(const QModelIndex ¤t, const QModelIndex &previous); //属性选中事件
|
2025-11-21 19:22:41 +08:00
|
|
|
private:
|
|
|
|
|
QTreeView* _treeView;
|
|
|
|
|
MonitorSideBarDlg* _parent;
|
2025-11-25 20:29:32 +08:00
|
|
|
QVBoxLayout* _pLayout;
|
2025-11-21 19:22:41 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|