-
Notifications
You must be signed in to change notification settings - Fork 0
/
editdialog.h
44 lines (36 loc) · 864 Bytes
/
editdialog.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
#ifndef EDITDIALOG_H
#define EDITDIALOG_H
#include <QDialog>
#include <QDebug>
#include <QString>
#include <QtSql>
#include <QGridLayout>
#include <QLabel>
#include <QGroupBox>
#include <QFormLayout>
#include <QCloseEvent>
#include <QDataWidgetMapper>
namespace Ui {
class editDialog;
}
class editDialog : public QDialog
{
Q_OBJECT
public:
explicit editDialog(QString tablename, QSqlTableModel *model, QItemSelectionModel * select,
QWidget *parent = 0);
~editDialog();
private slots:
void handleButton();
void handleButton1();
private:
Ui::editDialog *ui;
void queryNotOK(const QString &arg);
void fadeOut();
// void closeEvent(QCloseEvent *event);
QSqlQueryModel * model;
QLabel *error ;
QDataWidgetMapper *mapper;
// void closeEvent(QCloseEvent *event);
};
#endif // EDITDIALOG_H