summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-09-04 08:10:54 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-09-04 08:18:03 (GMT)
commit2e1653563a801909788c912ed8071afe8bf4ba05 (patch)
treea91d0c6ffa968cb9d73c879cbf7c67db177f131f
parent57e75716ac3eb47ca2d801e116a6b12a200c8808 (diff)
downloadQt-2e1653563a801909788c912ed8071afe8bf4ba05.zip
Qt-2e1653563a801909788c912ed8071afe8bf4ba05.tar.gz
Qt-2e1653563a801909788c912ed8071afe8bf4ba05.tar.bz2
Fixed autotest failure in qwidget on X11 with Oxygen style.
Oxygen draws a fancy background gradient etc so it's not suitable for this kind of pixel testing. Since we're testing the window surface and not the style just use the simple QWindowsStyle here. Reviewed-by: Gunnar Sletta
-rw-r--r--tests/auto/qwidget/tst_qwidget.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp
index f638efd..b3df69d 100644
--- a/tests/auto/qwidget/tst_qwidget.cpp
+++ b/tests/auto/qwidget/tst_qwidget.cpp
@@ -5347,6 +5347,8 @@ void tst_QWidget::moveChild()
QFETCH(QPoint, offset);
ColorWidget parent;
+ // prevent custom styles
+ parent.setStyle(new QWindowsStyle);
ColorWidget child(&parent, Qt::blue);
#ifndef Q_OS_WINCE
@@ -5397,6 +5399,8 @@ void tst_QWidget::moveChild()
void tst_QWidget::showAndMoveChild()
{
QWidget parent(0, Qt::FramelessWindowHint);
+ // prevent custom styles
+ parent.setStyle(new QWindowsStyle);
parent.resize(300, 300);
parent.setPalette(Qt::red);
parent.show();
@@ -6467,6 +6471,8 @@ void tst_QWidget::render()
{
QWidget window;
window.resize(100, 100);
+ // prevent custom styles
+ window.setStyle(new QWindowsStyle);
window.show();
#ifdef Q_WS_X11
qt_x11_wait_for_window_manager(&window);
@@ -6484,6 +6490,8 @@ void tst_QWidget::render()
widget.resize(200, 200);
widget.setAutoFillBackground(true);
widget.setPalette(Qt::red);
+ // prevent custom styles
+ widget.setStyle(new QWindowsStyle);
widget.show();
#ifdef Q_WS_X11
qt_x11_wait_for_window_manager(&widget);
@@ -6739,6 +6747,8 @@ void tst_QWidget::renderInvisible()
void tst_QWidget::renderWithPainter()
{
QWidget widget;
+ // prevent custom styles
+ widget.setStyle(new QWindowsStyle);
widget.show();
widget.resize(70, 50);
widget.setAutoFillBackground(true);