-
Notifications
You must be signed in to change notification settings - Fork 1
/
PeopleDialog.h
43 lines (36 loc) · 906 Bytes
/
PeopleDialog.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
#pragma once
#include <QDialog>
#include <QPushButton>
#include <QLabel>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include "PeopleDataModel.h"
#include "PeopleTableView.h"
class PeopleDialog : public QDialog {
Q_OBJECT
private:
QLabel *mTopLabel;
PeopleTableView *mTableView;
QVBoxLayout *mVLayout;
QHBoxLayout *mBottomBtnLayout;
PeopleDataModel *mDataModel;
private:
void initHeader();
void initTable();
void createLayouts();
void fillLayouts();
void initDataSource();
void connectSignalsToSlots();
void sortByColumn( int col );
public:
PeopleDialog(QWidget *parent = 0);
public slots:
void finished(int result);
void sectionClicked(int section);
void customMenuRequested(QPoint pos);
void deleteCurrentRows();
void addRow();
void scrollingEnded();
protected:
virtual void resizeEvent(QResizeEvent *event);
};