diff options
author | Dominik Holland <dominik.holland@nokia.com> | 2010-07-23 08:54:38 (GMT) |
---|---|---|
committer | Harald Fernengel <harald.fernengel@nokia.com> | 2010-11-02 14:27:44 (GMT) |
commit | 162ff4f01c5700da270f80f3e0decae11f42f6df (patch) | |
tree | ba33d5ab2dc3dec19613ba8dd36f2ed847c36971 | |
parent | d16b01310af4f9f1ec8b82eb883863745a7c9204 (diff) | |
download | Qt-162ff4f01c5700da270f80f3e0decae11f42f6df.zip Qt-162ff4f01c5700da270f80f3e0decae11f42f6df.tar.gz Qt-162ff4f01c5700da270f80f3e0decae11f42f6df.tar.bz2 |
Fixed QAbstractScrollArea autotest to use a dummy toplevel widget
-rw-r--r-- | tests/auto/qabstractscrollarea/tst_qabstractscrollarea.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/qabstractscrollarea/tst_qabstractscrollarea.cpp b/tests/auto/qabstractscrollarea/tst_qabstractscrollarea.cpp index da83826..d6c4b53 100644 --- a/tests/auto/qabstractscrollarea/tst_qabstractscrollarea.cpp +++ b/tests/auto/qabstractscrollarea/tst_qabstractscrollarea.cpp @@ -353,12 +353,13 @@ void tst_QAbstractScrollArea::task214488_layoutDirection() void tst_QAbstractScrollArea::patternBackground() { - QScrollArea scrollArea; + QWidget topLevel; + QScrollArea scrollArea(&topLevel); scrollArea.resize(200, 200); QWidget widget; widget.resize(600, 600); scrollArea.setWidget(&widget); - scrollArea.show(); + topLevel.show(); QLinearGradient linearGrad(QPointF(250, 250), QPointF(300, 300)); linearGrad.setColorAt(0, Qt::yellow); |