-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmyTreeView.h
40 lines (32 loc) · 915 Bytes
/
myTreeView.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
class myTreeView;
#ifndef MYTREEVIEW_H
#define MYTREEVIEW_H
#include <QtGui>
#include "respecta.h"
/**
* Class responsible for treeview of the task.
*/
class myTreeView:public QTreeView
{
public:
myTreeView(QWidget * parent, RESpecTa * _res):QTreeView(parent){res = _res;}
~myTreeView(){}
/**
* A function allowing public access to selectedIndexes() from QTreeView class
*/
//QModelIndexList getSelectedIndexes(){return selectedIndexes();}
private:
/**
* A function calling main window function after selection changed.
*/
void selectionChanged ( const QItemSelection & selected, const QItemSelection & deselected );
/**
* Signals main window to focus scene on an item, when an item is re-selected
*/
void focusInEvent(QFocusEvent *event);
/**
* Pointer to parent item.
*/
RESpecTa * res;
};
#endif // MYTREEVIEW_H