-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQ3TTableWidget.h
40 lines (30 loc) · 1.21 KB
/
Q3TTableWidget.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
#ifndef Q3TTableWidget_H
#define Q3TTableWidget_H
#include <QTableView>
#include "GlobalTypes.h"
class Q3TAbstractTableModel;
class Q3TTableWidget : public QTableView
{
Q_OBJECT
public:
Q3TTableWidget(AMDATATYPE dataType);
~Q3TTableWidget() override;
void actualRowColumnCount(int& actualRowCount, int& actualColumnCount);
protected:
void init();
void resetRowColumnCountByModelIndex(const QModelIndex &index);
void resetRowColumnCountByGeometry(bool isDecrease = true);
protected:
void resizeEvent(QResizeEvent *event) override;
void scrollTo (const QModelIndex & index, ScrollHint hint = EnsureVisible) override;
void wheelEvent(QWheelEvent *) override;
void currentChanged(const QModelIndex ¤t, const QModelIndex &previous) override;
Q_SIGNALS:
void actualRowColumnCountChange(int actualRowCount, int actualColumnCount);
private Q_SLOTS:
//void tableDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles = QVector<int>());
void tableActualRowColumnCountChange(int actualRowCount, int actualColumnCount);
private:
Q3TAbstractTableModel *m_pModel;
};
#endif // Q3TTableWidget_H