summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/kernel
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-11-17 15:52:53 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-21 09:58:23 +0100
commite8b4c49efddb87f4195c74668b5026119eccea56 (patch)
tree973f4539844b7ff0797bf7b7b1383c853dffda99 /tests/auto/widgets/kernel
parented5583048ecf3d340ded7e4d5f1b926a9929eebd (diff)
qtbase tests: Fix some warnings
- Fix warnings about QAtomicPointer/Int usage - Fix some gcc 4.6 warnings about assigned/unused variables Change-Id: Ib4dbf9110f0dad93ad48e97278310f05fad3a82a Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/widgets/kernel')
-rw-r--r--tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
index 67df4df257..fe02d1a681 100644
--- a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
+++ b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
@@ -5015,8 +5015,6 @@ void tst_QWidget::moveChild()
parent.setGeometry(60, 60, 150, 150);
#endif
child.setGeometry(25, 25, 50, 50);
- QPoint childOffset = child.mapToGlobal(QPoint());
-
parent.show();
QTest::qWaitForWindowShown(&parent);
QTest::qWait(30);
@@ -6970,9 +6968,6 @@ void tst_QWidget::render_worldTransform()
painter.translate(105, 5);
painter.rotate(90);
- const QTransform worldTransform = painter.worldTransform();
- const QTransform deviceTransform = painter.deviceTransform();
-
// Render widgets onto image.
widget.render(&painter);
#ifdef RENDER_DEBUG
@@ -7100,7 +7095,6 @@ void tst_QWidget::repaintWhenChildDeleted()
w.r = QRegion();
{
- const QPoint tlwOffset = w.geometry().topLeft();
ColorWidget child(&w, Qt::blue);
child.setGeometry(10, 10, 10, 10);
child.show();