Tab based websocket comms looking like trad RM
This commit is contained in:
25
SettingsTree.h
Normal file
25
SettingsTree.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
#include <QMap>
|
||||
#include <QTreeWidget>
|
||||
|
||||
class SettingsTree : public QTreeWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit SettingsTree(QWidget *parent = nullptr);
|
||||
|
||||
void loadKeys(const QStringList &keys);
|
||||
void setValue(const QString &key, const QString &value);
|
||||
|
||||
Q_SIGNALS:
|
||||
void valueEdited(const QString &key, const QString &value);
|
||||
|
||||
private slots:
|
||||
void onItemChanged(QTreeWidgetItem *item, int column);
|
||||
|
||||
private:
|
||||
QString fullPath(QTreeWidgetItem *item) const;
|
||||
|
||||
QMap<QString, QTreeWidgetItem *> m_itemMap;
|
||||
bool m_loading = false;
|
||||
};
|
||||
Reference in New Issue
Block a user