ExtendedTableWidget: Always scroll per pixel horizonzally

Always use per pixel scrolling when scrolling in horizontal direction.
This changes the scrolling in the SqlExecutionArea and makes some
settings in the MainWindow dispensable.
This commit is contained in:
Martin Kleusberg
2013-05-09 18:05:25 +02:00
parent 1e89d1914e
commit 1c19defbe9
2 changed files with 3 additions and 7 deletions

View File

@@ -10,6 +10,8 @@
ExtendedTableWidget::ExtendedTableWidget(QWidget* parent) :
QTableView(parent)
{
setHorizontalScrollMode(ExtendedTableWidget::ScrollPerPixel);
connect(verticalScrollBar(), SIGNAL(valueChanged(int)), this, SLOT(vscrollbarChanged(int)));
}