summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Zander <thomas.zander@trolltech.com>2009-05-12 18:54:15 +0200
committerThomas Zander <thomas.zander@trolltech.com>2009-05-12 18:54:15 +0200
commit0486d9abaaf7b52beb8526d8497a60ebaaef6857 (patch)
tree36a5e74f502e2431d9cb14797801880640559578
parent5a5c082b79d30dabd3cd0437ee692f9204ca156b (diff)
Make scrolling work again. Not sure if we decided who should own the headers
so I just commented this out to make it work.
-rw-r--r--src/qtablecontroller.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qtablecontroller.cpp b/src/qtablecontroller.cpp
index 4da536e..dc83381 100644
--- a/src/qtablecontroller.cpp
+++ b/src/qtablecontroller.cpp
@@ -858,12 +858,12 @@ qreal QtTableController::verticalScrollValue() const
void QtTableController::setVerticalScrollValue(qreal value)
{
Q_D(QtTableController);
- if (d->verticalHeader) {
+ /*if (d->verticalHeader) {
if (d->scrollPerRow)
d->verticalHeader->setFirstSection(value);
else
d->verticalHeader->setOffset(value);
- } else if (d->view) {
+ } else*/ if (d->view) {
if (d->scrollPerRow)
d->view->setFirstRow(value);
else
@@ -884,12 +884,12 @@ qreal QtTableController::horizontalScrollValue() const
void QtTableController::setHorizontalScrollValue(qreal value)
{
Q_D(QtTableController);
- if (d->horizontalHeader) {
+ /*if (d->horizontalHeader) {
if (d->scrollPerColumn)
d->horizontalHeader->setFirstSection(value);
else
d->horizontalHeader->setOffset(value);
- } else if (d->view) {
+ } else*/ if (d->view) {
if (d->scrollPerColumn)
d->view->setFirstColumn(value);
else