casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
QPHeaderTableWidget.qo.h
Go to the documentation of this file.
1 /*
2  * QPHeaderTableWidget.qo.h
3  * GUI Widget for displaying header items in a table
4  *
5  */
6 
7 #ifndef QPHEADERTABLEWIDGET_QO_H_
8 #define QPHEADERTABLEWIDGET_QO_H_
9 
10 // For PlotMSHeaderTable
11 #include <QHeaderView>
12 #include <QTableView>
13 
14 // For HeaderTableDataModel
15 #include <QtCore/QAbstractTableModel>
16 #include <QtCore/QVariant>
17 #include <QtCore/QModelIndex>
18 
19 
20 namespace casa {
21 
22 class HeaderTableDataModel; // Forward declaration
23 
24 // Widget for displaying header items in a table
25 class QPHeaderTable : public QTableView {
26  Q_OBJECT
27 
28 public:
29  // Constructor which takes optional parent widget.
30  QPHeaderTable(QWidget* parent = nullptr);
31 
32  // Destructor.
34 
35 protected:
36  void resizeEvent(QResizeEvent *event);
37 
38 };
39 
40 }
41 
42 
43 #endif /* QPHEADERTABLEWIDGET_QO_H_ */
void resizeEvent(QResizeEvent *event)
~QPHeaderTable()
Destructor.
QPHeaderTable(QWidget *parent=nullptr)
Constructor which takes optional parent widget.
Widget for displaying header items in a table.