mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Fix wrong scrolling behaviour that ocurred when going to the very bottom of the table and scrolling up slowly.
26 lines
435 B
C++
26 lines
435 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();
|
|
int numVisibleRows();
|
|
|
|
private slots:
|
|
void vscrollbarChanged(int value);
|
|
|
|
protected:
|
|
virtual void keyPressEvent(QKeyEvent* event);
|
|
virtual void updateGeometries();
|
|
};
|
|
|
|
#endif
|