diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-07-11 15:12:26 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-11 16:58:53 +0200 |
commit | 09d3ebbf2a422e5e19528877e5e2fcdab6a889f7 (patch) | |
tree | f041c32469e1d13074234c334695fd5886033a33 /tests/manual/windowgeometry | |
parent | 7f2a64f4039cf41aee796d1a9c36d33e5e629b61 (diff) |
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 <joerg.bornemann@nokia.com>
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Diffstat (limited to 'tests/manual/windowgeometry')
-rw-r--r-- | tests/manual/windowgeometry/controllerwidget.cpp | 7 |
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(); |