forked from sqlitebrowser/sqlitebrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExtendedTableWidget.h
More file actions
38 lines (27 loc) · 773 Bytes
/
Copy pathExtendedTableWidget.h
File metadata and controls
38 lines (27 loc) · 773 Bytes
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
#ifndef EXTENDEDTABLEWIDGET_H
#define EXTENDEDTABLEWIDGET_H
#include <QTableView>
#include "FilterTableHeader.h"
#include <QSet>
class ExtendedTableWidget : public QTableView
{
Q_OBJECT
public:
explicit ExtendedTableWidget(QWidget* parent = 0);
FilterTableHeader* filterHeader() { return m_tableHeader; }
public:
QSet<int> selectedCols();
signals:
void foreignKeyClicked(const QString& table, const QString& column, const QByteArray& value);
private:
void copy();
int numVisibleRows();
private slots:
void vscrollbarChanged(int value);
void cellClicked(const QModelIndex& index);
protected:
virtual void keyPressEvent(QKeyEvent* event);
virtual void updateGeometries();
FilterTableHeader* m_tableHeader;
};
#endif