From 09d3ebbf2a422e5e19528877e5e2fcdab6a889f7 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 11 Jul 2012 15:12:26 +0200 Subject: Improve windowflags, windowgeometry manual tests. - Make them compile with 4.8 for comparison - Add Active to WindowStates control - Add -layout option to windowgeometry Change-Id: I052330eb8689883c104a0552708ea700c7cd790a Reviewed-by: Joerg Bornemann Reviewed-by: Thomas McGuire --- tests/manual/windowgeometry/controllerwidget.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/manual/windowgeometry') diff --git a/tests/manual/windowgeometry/controllerwidget.cpp b/tests/manual/windowgeometry/controllerwidget.cpp index e45b05776d..a53739881b 100644 --- a/tests/manual/windowgeometry/controllerwidget.cpp +++ b/tests/manual/windowgeometry/controllerwidget.cpp @@ -269,7 +269,7 @@ private: WidgetWindowControl::WidgetWindowControl(QWidget *w ) : BaseWindowControl(w) - , m_statesControl(new WindowStatesControl(WindowStatesControl::WantVisibleCheckBox)) + , m_statesControl(new WindowStatesControl(WindowStatesControl::WantVisibleCheckBox | WindowStatesControl::WantActiveCheckBox)) { setTitle(w->windowTitle()); m_layout->addWidget(m_statesControl, 2, 0); @@ -435,6 +435,11 @@ ControllerWidget::ControllerWidget(QWidget *parent) x += 800; m_testWidget->setWindowTitle(tr("TestWidget")); + if (args.contains(QLatin1String("-layout"))) { + QVBoxLayout *layout = new QVBoxLayout(m_testWidget.data()); + QLabel *label = new QLabel("Hallo"); + layout->addWidget(label); + } m_testWidget->move(x, y); m_testWidget->resize(200, 200); m_testWidget->show(); -- cgit v1.2.3