diff options
author | David Boddie <david.boddie@nokia.com> | 2011-04-27 17:16:41 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2011-05-04 16:34:57 (GMT) |
commit | b727e5b95c1f0bd308b228fcf0445b42847ae583 (patch) | |
tree | e120ca1ec5c2e303fb6fca97bc9754403e0f25f2 /examples/statemachine/trafficlight/main.cpp | |
parent | 6d1e0faa19be784f79730d65af9c1a162245c7dc (diff) | |
download | Qt-b727e5b95c1f0bd308b228fcf0445b42847ae583.zip Qt-b727e5b95c1f0bd308b228fcf0445b42847ae583.tar.gz Qt-b727e5b95c1f0bd308b228fcf0445b42847ae583.tar.bz2 |
Squashed commit of the changes from the mobile-examples repository
(4.7-generated-declarative branch).
(cherry picked from commit 539311f7b2687e3148ea695ce06fee768abe7b44)
Diffstat (limited to 'examples/statemachine/trafficlight/main.cpp')
-rw-r--r-- | examples/statemachine/trafficlight/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/statemachine/trafficlight/main.cpp b/examples/statemachine/trafficlight/main.cpp index 23cd348..c20e059 100644 --- a/examples/statemachine/trafficlight/main.cpp +++ b/examples/statemachine/trafficlight/main.cpp @@ -88,6 +88,9 @@ public: : QWidget(parent) { QVBoxLayout *vbox = new QVBoxLayout(this); +#ifdef Q_WS_MAEMO_5 + vbox->setContentsMargins(320, 0, 320, 0); +#endif m_red = new LightWidget(Qt::red); vbox->addWidget(m_red); m_yellow = new LightWidget(Qt::yellow); @@ -174,8 +177,14 @@ int main(int argc, char **argv) QApplication app(argc, argv); TrafficLight widget; +#if defined(Q_OS_SYMBIAN) + widget.showMaximized(); +#elif defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR) + widget.show(); +#else widget.resize(110, 300); widget.show(); +#endif return app.exec(); } |