-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathfrmsavetags.h
More file actions
59 lines (45 loc) · 1.35 KB
/
frmsavetags.h
File metadata and controls
59 lines (45 loc) · 1.35 KB
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
#ifndef TagUpload_H
#define TagUpload_H
// Qt includes
#include <QValidator>
#include <QRegExpValidator>
#include <QRegExp>
#include <QMessageBox>
#include <QTextStream>
#include <QString>
#include <QPushButton>
#include <QDialogButtonBox>
#include <QStandardItemModel>
#include <QtSql/QSqlQuery>
// Debug output
#include "Debug.h"
#include "DbConnection.h"
// UI file
#include "ui_frmsavetags.h"
class TagUpload : public QDialog, private Ui::TagUpload {
Q_OBJECT
public:
TagUpload(QWidget *parent = 0) {
Q_UNUSED(parent);
setupUi(this);
tagsModel = new QStandardItemModel(0, 2,this);
tagsModel->setHeaderData(0, Qt::Horizontal, QObject::tr("Detid"));
tagsModel->setHeaderData(1, Qt::Horizontal, QObject::tr("I2CAddress"));
tagsView->setModel(tagsModel);
tagsView->setSelectionMode(QAbstractItemView::SingleSelection);
tagsView->horizontalHeader()->setResizeMode(QHeaderView::Stretch);
connect(btnBox, SIGNAL(accepted()), this, SLOT(accept()));
connect(btnBox, SIGNAL(rejected()), this, SLOT(reject()));
}
~TagUpload() {
}
public Q_SLOTS:
void accept() {
}
void reject() {
done(0);
}
private:
QStandardItemModel* tagsModel;
};
#endif