summaryrefslogtreecommitdiff
path: root/utils/themeeditor/configdocument.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/configdocument.h')
-rw-r--r--utils/themeeditor/configdocument.h25
1 files changed, 16 insertions, 9 deletions
diff --git a/utils/themeeditor/configdocument.h b/utils/themeeditor/configdocument.h
index 114cb5bbfc..8493c7a138 100644
--- a/utils/themeeditor/configdocument.h
+++ b/utils/themeeditor/configdocument.h
@@ -24,8 +24,10 @@
24 24
25#include <QHBoxLayout> 25#include <QHBoxLayout>
26#include <QLineEdit> 26#include <QLineEdit>
27#include <QComboBox>
27#include <QPushButton> 28#include <QPushButton>
28#include <QWidget> 29#include <QWidget>
30#include <QLabel>
29#include <QMap> 31#include <QMap>
30 32
31#include "tabcontent.h" 33#include "tabcontent.h"
@@ -55,25 +57,30 @@ public:
55protected: 57protected:
56 void changeEvent(QEvent *e); 58 void changeEvent(QEvent *e);
57 59
60signals:
61 void configFileChanged(QString);
62
63private slots:
64 void deleteClicked();
65 void addClicked();
66 void textChanged();
67
68
58private: 69private:
59 Ui::ConfigDocument *ui; 70 Ui::ConfigDocument *ui;
60 QList<QHBoxLayout*> containers; 71 QList<QHBoxLayout*> containers;
61 QList<QLineEdit*> keys; 72 QList<QComboBox*> keys;
62 QList<QLineEdit*> values; 73 QList<QLineEdit*> values;
63 QList<QPushButton*> deleteButtons; 74 QList<QPushButton*> deleteButtons;
75 QList<QLabel*> labels;
76
77 QStringList primaryKeys;
78 QStringList secondaryKeys;
64 79
65 QString filePath; 80 QString filePath;
66 QString saved; 81 QString saved;
67 82
68 void addRow(QString key, QString value); 83 void addRow(QString key, QString value);
69
70signals:
71 void configFileChanged(QString);
72
73private slots:
74 void deleteClicked();
75 void addClicked();
76 void textChanged();
77}; 84};
78 85
79#endif // CONFIGDOCUMENT_H 86#endif // CONFIGDOCUMENT_H