-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsettingswidget.h
More file actions
38 lines (27 loc) · 790 Bytes
/
settingswidget.h
File metadata and controls
38 lines (27 loc) · 790 Bytes
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
32
33
34
35
36
37
38
#ifndef SETTINGSWIDGET_H
#define SETTINGSWIDGET_H
// Copyright 2023 by Linwood Ferguson, licensed under GNU GPLv3
#include "settingsitem.h"
class MainWindow;
class QLineEdit;
class QVBoxLayout;
class QPushButton;
class settingsWidget : public QWidget
{
Q_OBJECT
public:
settingsWidget(QWidget*, MainWindow*);
void loadData();
MainWindow* mParent;
typedef std::map<QString,settingsItem*> rowMap_t; // value key and row in table
rowMap_t values;
QVBoxLayout* innerLayout;
private:
QWidget* containingWidget; // Just so we can delete enmass easily
QLabel* errorSubHeading;
QPushButton* saveButton;
bool validateAll();
void paintEvent(QPaintEvent *);
bool validateInt(int row, int bottom, int top);
};
#endif // SETTINGSWIDGET_H