qt5
Last change
on this file since ce59092 was
ce59092,
checked in by pavelpa <pavelpa@…>, 13 years ago
|
Event 'details' dialog now contains also 'favourite' and 'alarm'
buttons, so the user can set/unset the property directly from the dialog
|
-
Property mode set to
100644
|
File size:
910 bytes
|
Line | |
---|
1 | #ifndef EVENTDIALOG_H |
---|
2 | #define EVENTDIALOG_H |
---|
3 | |
---|
4 | #include <QDialog> |
---|
5 | #include "ui_eventdialog.h" |
---|
6 | #include <event.h> |
---|
7 | |
---|
8 | class DetailsContainer : public QWidget |
---|
9 | { |
---|
10 | public: |
---|
11 | DetailsContainer(QWidget *aParent = NULL); |
---|
12 | void setPersons(const QStringList &aPersons); |
---|
13 | void setAbstract(const QString &aAbstract); |
---|
14 | void setDescription(const QString &aDescription); |
---|
15 | private: |
---|
16 | QBoxLayout *mMainLayout; |
---|
17 | QLabel mPersons; |
---|
18 | QLabel mAbstract; |
---|
19 | QLabel mDescription; |
---|
20 | }; |
---|
21 | |
---|
22 | class EventDialog : public QDialog, Ui::EventDialog |
---|
23 | { |
---|
24 | Q_OBJECT |
---|
25 | public: |
---|
26 | EventDialog(const int &aEventId, QWidget *aParent = NULL); |
---|
27 | ~EventDialog() {} |
---|
28 | private slots: |
---|
29 | void favouriteClicked(); |
---|
30 | void alarmClicked(); |
---|
31 | signals: |
---|
32 | void eventHasChanged(int aEventId); // emited when user changes some event details, eg. sets it Favourite |
---|
33 | private: |
---|
34 | int mEventId; |
---|
35 | DetailsContainer mDetails; |
---|
36 | }; |
---|
37 | |
---|
38 | #endif /* EVENTDIALOG_H */ |
---|
39 | |
---|
Note: See
TracBrowser
for help on using the repository browser.