blob: 80e76f04e3b7f724a52ed3ec3cab752e81ab2d56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 §ion = QString());
protected:
void resizeEvent(QResizeEvent *event);
private:
QString m_selectedKey;
QToolButton *addBtn = nullptr, *removeBtn = nullptr;
};
#endif // SETTINGS_TREE
|