-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwidget.h
45 lines (34 loc) · 803 Bytes
/
widget.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
#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include <QStackedWidget>
#include "qnotify.h"
#include "listpart.h"
#include "taskpart.h"
#include "listdetailwidget.h"
#include "taskdetailwidget.h"
class Widget : public QWidget
{
Q_OBJECT
private:
ListPart *listPart;
TaskPart *taskPart;
ListDetailWidget *listDetailWidget;
TaskDetailWidget *taskDetailWidget;
QStackedWidget *stackedWidget;
QNotify *notice;
public:
Widget(QWidget *parent = 0);
~Widget();
protected:
void closeEvent(QCloseEvent *);
private:
void save();
void read();
public slots:
void switchToListDetailWidget(ListItem *);
void switchToTaskPart();
void switchToTaskItemDetailWidget(TaskItem *);
void callWarningTip(QString string);
};
#endif // WIDGET_H