qt5
Last change
on this file since d336730 was
c718a77,
checked in by pavelpa <pavelpa@…>, 13 years ago
|
EventModel? signaling changed
- if some of the data (favourite,alarm) has changed on the event,
signal 'eventHasChanged' is emitted
- all treeViews (eg. DayView?, FavsView?, TracksView?, ...) have to listen on this signal
Only favouritiesView is 'reset' when current tab is changed in mainWindow
- 'cause time groupings have to be recreated, since favs may have changed
|
-
Property mode set to
100644
|
File size:
638 bytes
|
Line | |
---|
1 | #ifndef TREEVIEW_H |
---|
2 | #define TREEVIEW_H |
---|
3 | |
---|
4 | #include <QTreeView> |
---|
5 | |
---|
6 | class TreeView : public QTreeView |
---|
7 | { |
---|
8 | Q_OBJECT |
---|
9 | public: |
---|
10 | TreeView(QWidget *aParent = NULL); |
---|
11 | ~TreeView() {} |
---|
12 | private: |
---|
13 | void mouseReleaseEvent(QMouseEvent *aEvent); |
---|
14 | bool testForControlClicked(const QModelIndex &aIndex, const QPoint &aPoint); |
---|
15 | private slots: |
---|
16 | void handleItemClicked(const QModelIndex &index); |
---|
17 | signals: |
---|
18 | void requestForMap(const QModelIndex &aIndex); |
---|
19 | void requestForWarning(const QModelIndex &aIndex); |
---|
20 | void eventHasChanged(int aEventId); // emited when user changes some event details, eg. sets it Favourite |
---|
21 | }; |
---|
22 | |
---|
23 | #endif /* TREEVIEW_H */ |
---|
24 | |
---|
Note: See
TracBrowser
for help on using the repository browser.