summaryrefslogtreecommitdiff
path: root/tests/auto/qboxlayout
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-08-06 11:31:03 +0200
committerOlivier Goffart <ogoffart@trolltech.com>2009-08-06 11:33:03 +0200
commit5e7c47537f0f9599959388670ebd8fe910d9c0f1 (patch)
treea9b85daf0c9599c15e3bcfbe9843f531c87f6996 /tests/auto/qboxlayout
parent62d87f9144728251450066dc41a06ad176fb4379 (diff)
downloadqt4-tools-5e7c47537f0f9599959388670ebd8fe910d9c0f1.tar.gz
Fix the setStyleShouldChangeSpacing test function for Mac.
Diffstat (limited to 'tests/auto/qboxlayout')
-rw-r--r--tests/auto/qboxlayout/tst_qboxlayout.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qboxlayout/tst_qboxlayout.cpp b/tests/auto/qboxlayout/tst_qboxlayout.cpp
index be6f3dd543..642bc77331 100644
--- a/tests/auto/qboxlayout/tst_qboxlayout.cpp
+++ b/tests/auto/qboxlayout/tst_qboxlayout.cpp
@@ -222,6 +222,8 @@ void tst_QBoxLayout::setStyleShouldChangeSpacing()
QHBoxLayout *hbox = new QHBoxLayout(window);
QPushButton *pb1 = new QPushButton(tr("The spacing between this"));
QPushButton *pb2 = new QPushButton(tr("and this button should depend on the style of the parent widget"));;
+ pb1->setAttribute(Qt::WA_LayoutUsesWidgetRect);
+ pb2->setAttribute(Qt::WA_LayoutUsesWidgetRect);
hbox->addWidget(pb1);
hbox->addWidget(pb2);
CustomLayoutStyle *style1 = new CustomLayoutStyle;