diff options
author | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2009-08-27 13:26:09 (GMT) |
---|---|---|
committer | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2009-08-27 13:26:09 (GMT) |
commit | 99823eb61a873c5ef0f6a3e1c213fb0d197c6de7 (patch) | |
tree | 6334d47260fb7c2339ffe4dd20211e8a60cd76ab /src/gui | |
parent | 919259cadd1adc18aaaef7e6f453e3fa005dd8b7 (diff) | |
download | Qt-99823eb61a873c5ef0f6a3e1c213fb0d197c6de7.zip Qt-99823eb61a873c5ef0f6a3e1c213fb0d197c6de7.tar.gz Qt-99823eb61a873c5ef0f6a3e1c213fb0d197c6de7.tar.bz2 |
Fix compile error on Windows
Changed QSize to QSizeF
Reviewed-by: Trust Me
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/widgets/qabstractscrollarea.cpp | 2 | ||||
-rw-r--r-- | src/gui/widgets/qplaintextedit.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/qabstractscrollarea.cpp b/src/gui/widgets/qabstractscrollarea.cpp index 1b4d41b..d1adfee 100644 --- a/src/gui/widgets/qabstractscrollarea.cpp +++ b/src/gui/widgets/qabstractscrollarea.cpp @@ -1356,7 +1356,7 @@ void QAbstractScrollAreaPrivate::_q_gestureTriggered() return; QScrollBar *hBar = q->horizontalScrollBar(); QScrollBar *vBar = q->verticalScrollBar(); - QSize delta = g->lastOffset(); + QSizeF delta = g->lastOffset(); if (!delta.isNull()) { if (QApplication::isRightToLeft()) delta.rwidth() *= -1; diff --git a/src/gui/widgets/qplaintextedit.cpp b/src/gui/widgets/qplaintextedit.cpp index 4ea18f8..6ac521b 100644 --- a/src/gui/widgets/qplaintextedit.cpp +++ b/src/gui/widgets/qplaintextedit.cpp @@ -2934,7 +2934,7 @@ void QPlainTextEditPrivate::_q_gestureTriggered() QScrollBar *vBar = q->verticalScrollBar(); if (g->state() == Qt::GestureStarted) originalOffsetY = vBar->value(); - QSize totalOffset = g->totalOffset(); + QSizeF totalOffset = g->totalOffset(); if (!totalOffset.isNull()) { if (QApplication::isRightToLeft()) totalOffset.rwidth() *= -1; |