Engauge Digitizer  2
WindowTable.h
1 /******************************************************************************************************
2  * (C) 2016 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #ifndef WINDOW_TABLE_H
8 #define WINDOW_TABLE_H
9 
10 #include <QObject>
11 #include <QTableView>
12 
13 class QMouseEvent;
14 class WindowModelBase;
15 
17 class WindowTable : public QTableView
18 {
19  Q_OBJECT;
20 
21 public:
24  ~WindowTable();
25 
27  virtual void focusInEvent (QFocusEvent *);
28 
30  virtual void focusOutEvent (QFocusEvent *);
31 
33  virtual void selectionChanged(const QItemSelection &selected,
34  const QItemSelection &deselected);
35 
36 signals:
39 
40 private:
41  WindowTable();
42 };
43 
44 #endif // WINDOW_TABLE_H
virtual void focusOutEvent(QFocusEvent *)
Catch this table status change.
Definition: WindowTable.cpp:52
Table view class with support for both drag-and-drop and copy-and-paste.
Definition: WindowTable.h:17
void signalTableStatusChange()
Sent when a change occurs that should affect the Copy menu item.
virtual void focusInEvent(QFocusEvent *)
Catch this table status change.
Definition: WindowTable.cpp:45
Model for WindowTable.
virtual void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
Catch this table status change.
Definition: WindowTable.cpp:59