summaryrefslogtreecommitdiffstats
path: root/tests/manual/windowgeometry/controllerwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/windowgeometry/controllerwidget.cpp')
-rw-r--r--tests/manual/windowgeometry/controllerwidget.cpp7
1 files changed, 6 insertions, 1 deletions
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();