diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2010-05-10 14:26:12 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2010-05-10 15:55:14 (GMT) |
commit | 48acfd970f5fab740fd16ecdc31656c56ec2356b (patch) | |
tree | 797dae2cc6efd54ad809de44942abb1a2919a2a4 /tests/auto/qwidget/tst_qwidget.cpp | |
parent | 2df5a9567ff83a547c3c66e4b523844b78968108 (diff) | |
download | Qt-48acfd970f5fab740fd16ecdc31656c56ec2356b.zip Qt-48acfd970f5fab740fd16ecdc31656c56ec2356b.tar.gz Qt-48acfd970f5fab740fd16ecdc31656c56ec2356b.tar.bz2 |
Fix compile errors
Added #ifdef QT_BUILD_INTERNAL for autotests which rely on AUTOTEST_EXPORT
symbols (only available in internal developer configurations)
Reviewed-by: Liang Qi
Diffstat (limited to 'tests/auto/qwidget/tst_qwidget.cpp')
-rw-r--r-- | tests/auto/qwidget/tst_qwidget.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp index 76e20b9..5d47aed 100644 --- a/tests/auto/qwidget/tst_qwidget.cpp +++ b/tests/auto/qwidget/tst_qwidget.cpp @@ -9514,6 +9514,8 @@ void tst_QWidget::destroyBackingStore() w.update(); QApplication::processEvents(); QCOMPARE(w.numPaintEvents, 2); +#else + QSKIP("Test case relies on developer build (AUTOTEST_EXPORT)", SkipAll); #endif } @@ -9992,6 +9994,7 @@ void tst_QWidget::focusProxyAndInputMethods() delete toplevel; } +#ifdef QT_BUILD_INTERNAL class scrollWidgetWBS : public QWidget { public: @@ -10011,9 +10014,11 @@ public: } } }; +#endif void tst_QWidget::scrollWithoutBackingStore() { +#ifdef QT_BUILD_INTERNAL scrollWidgetWBS scrollable; scrollable.resize(100,100); QLabel child(QString("@"),&scrollable); @@ -10027,6 +10032,9 @@ void tst_QWidget::scrollWithoutBackingStore() QCOMPARE(child.pos(),QPoint(25,25)); scrollable.enableBackingStore(); QCOMPARE(child.pos(),QPoint(25,25)); +#else + QSKIP("Test case relies on developer build (AUTOTEST_EXPORT)", SkipAll); +#endif } void tst_QWidget::taskQTBUG_7532_tabOrderWithFocusProxy() |