-
Notifications
You must be signed in to change notification settings - Fork 4
/
edituserdialog.h
39 lines (35 loc) · 949 Bytes
/
edituserdialog.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
#ifndef EDITUSERDIALOG_H
#define EDITUSERDIALOG_H
#include <QDialog>
#include <QItemSelection>
#include <QDate>
#include <QModelIndex>
#include "globalconfig.h"
class QSqlTableModel;
class QDataWidgetMapper;
namespace Ui{
class EditUserDialog;
}
class EditUserDialog : public QDialog
{
Q_OBJECT
public:
explicit EditUserDialog(QWidget *parent = 0);
~EditUserDialog();
private slots:
void beginEditing();
void endEditing();
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
void searchTextChanged(QString text);
void on_save_pushButton_3_clicked();
void combobox_text_changed(QString text);
void searchDateChanged(QDate date);
private:
Ui::EditUserDialog *ui;
GlobalConfig global_config;
QDataWidgetMapper *user_mapper;
QSqlTableModel *user_model;
//Helper variables for Filtering
QString filter;
};
#endif // EDITUSERDIALOG_H