qt5
Last change
on this file since 2104023 was
872aeaa,
checked in by pavelpa <pavelpa@…>, 13 years ago
|
some performance optimizations
- favourities reloaded only if they have really changed
- otherwise only event in the question is updated
|
-
Property mode set to
100644
|
File size:
788 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 | public slots: |
---|
16 | void setAllExpanded(bool aExpanded); // (aExpanded==true) => expanded; (aExpanded==false) => collapsed |
---|
17 | private slots: |
---|
18 | void handleItemClicked(const QModelIndex &index); |
---|
19 | signals: |
---|
20 | void requestForMap(const QModelIndex &aIndex); |
---|
21 | void requestForConflicts(const QModelIndex &aIndex); |
---|
22 | void eventHasChanged(int aEventId, bool aReloadModel = false); // emited when user changes some event details, eg. sets it Favourite |
---|
23 | }; |
---|
24 | |
---|
25 | #endif /* TREEVIEW_H */ |
---|
26 | |
---|
Note: See
TracBrowser
for help on using the repository browser.