-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstantpower4lampswdgt.h
64 lines (38 loc) · 1.13 KB
/
instantpower4lampswdgt.h
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef INSTANTPOWER4LAMPSWDGT_H
#define INSTANTPOWER4LAMPSWDGT_H
#include <QWidget>
#include <QMenu>
#include <QStandardItemModel>
#include <QJsonObject>
#include <QJsonDocument>
#include <QTableView>
#include "mysortfilterproxymodel.h"
namespace Ui {
class InstantPower4lampsWdgt;
}
class InstantPower4lampsWdgt : public QWidget
{
Q_OBJECT
public:
explicit InstantPower4lampsWdgt(QWidget *parent = nullptr);
~InstantPower4lampsWdgt();
void setupObjectTv(QTableView *tv);
QJsonObject getPageSettings();
QStringList getHeaderGroups();
void setModelHorizontalHeaderItems(const QStringList &header, QStandardItemModel *model);
signals:
void showMessage(QString message);
public slots:
void initPage();
void clearPage();
void setPageSett(QJsonObject json);
void onEditProfiles(const QModelIndex &index);
void onEditProfilesRow(const int &srcrow);
private slots:
void on_tableView_doubleClicked(const QModelIndex &index);
private:
Ui::InstantPower4lampsWdgt *ui;
QStandardItemModel *modelGroups;
MySortFilterProxyModel *proxyGroups;
};
#endif // INSTANTPOWER4LAMPSWDGT_H