mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 11:00:44 -06:00
Rewrite some code to use a QTableView widget instead of a QTableWidget in the browse tab of the main window, or more presicely in the new extended table widget class. This way the widget and the data model are separated which on the one hand means a bit more work on our side but on the other hand also gives us a bit more flexibility. And more importantly at the moment: This means both, the browse tab and the sql tab, use a table view now - that's going to be helpful for the next commit...
21 lines
317 B
C++
21 lines
317 B
C++
#ifndef __EXTENDEDTABLEWIDGET_H__
|
|
#define __EXTENDEDTABLEWIDGET_H__
|
|
|
|
#include <QTableView>
|
|
|
|
class ExtendedTableWidget : public QTableView
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ExtendedTableWidget(QWidget* parent = 0);
|
|
|
|
private:
|
|
void copy();
|
|
|
|
protected:
|
|
virtual void keyPressEvent(QKeyEvent* event);
|
|
};
|
|
|
|
#endif
|