summaryrefslogtreecommitdiffstats
path: root/tests/auto/qboxlayout
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-08-06 09:31:03 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-08-06 09:33:03 (GMT)
commit5e7c47537f0f9599959388670ebd8fe910d9c0f1 (patch)
treea9b85daf0c9599c15e3bcfbe9843f531c87f6996 /tests/auto/qboxlayout
parent62d87f9144728251450066dc41a06ad176fb4379 (diff)
downloadQt-5e7c47537f0f9599959388670ebd8fe910d9c0f1.zip
Qt-5e7c47537f0f9599959388670ebd8fe910d9c0f1.tar.gz
Qt-5e7c47537f0f9599959388670ebd8fe910d9c0f1.tar.bz2
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 be6f3dd..642bc77 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;