aboutsummaryrefslogtreecommitdiff
path: root/plugins/ProfileEditor/forms/settingstable.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-04-25 22:09:13 +0300
committerAqua-sama <aqua@iserlohn-fortress.net>2020-05-26 12:50:15 +0300
commit0492a063806b6d63e4f378908b809de104a24820 (patch)
tree2e285d0c9b5067dc9395bfb751fe84bb8ac2a5f4 /plugins/ProfileEditor/forms/settingstable.h
parentlibwebengine (diff)
downloadsmolbote-0492a063806b6d63e4f378908b809de104a24820.tar.xz
Update ProfileEditor plugin
ProfileEditor: - add tests - disable read-only settings on otr profiles Add WebProfile::setHeaders and WebProfile::setCookies
Diffstat (limited to 'plugins/ProfileEditor/forms/settingstable.h')
-rw-r--r--plugins/ProfileEditor/forms/settingstable.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/plugins/ProfileEditor/forms/settingstable.h b/plugins/ProfileEditor/forms/settingstable.h
new file mode 100644
index 0000000..80e76f0
--- /dev/null
+++ b/plugins/ProfileEditor/forms/settingstable.h
@@ -0,0 +1,31 @@
+/*
+ * This file is part of smolbote. It's copyrighted by the contributors recorded
+ * in the version control history of the file, available from its original
+ * location: https://neueland.iserlohn-fortress.net/cgit/smolbote
+ *
+ * SPDX-License-Identifier: GPL-3.0
+ */
+
+#ifndef SETTINGS_TREE
+#define SETTINGS_TREE
+
+#include <QTableWidget>
+
+class QSettings;
+class QToolButton;
+class SettingsTable : public QTableWidget
+{
+public:
+ SettingsTable(QWidget *parent = nullptr);
+
+ void connect(QSettings *settings, const QString &section = QString());
+
+protected:
+ void resizeEvent(QResizeEvent *event);
+
+private:
+ QString m_selectedKey;
+ QToolButton *addBtn = nullptr, *removeBtn = nullptr;
+};
+
+#endif // SETTINGS_TREE