diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2010-03-25 14:52:04 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2010-03-25 14:53:02 (GMT) |
commit | dfbabeca0cb8a9efdb6758c228700eeb5996652c (patch) | |
tree | 42598fd46dbde25acb47953d3f75799ccfd2e4ea /examples/graphicsview | |
parent | 1e6c23469ea78f6ff5a3a546c08ae22a5ba79356 (diff) | |
download | Qt-dfbabeca0cb8a9efdb6758c228700eeb5996652c.zip Qt-dfbabeca0cb8a9efdb6758c228700eeb5996652c.tar.gz Qt-dfbabeca0cb8a9efdb6758c228700eeb5996652c.tar.bz2 |
Fix warnings and build on mingw
Diffstat (limited to 'examples/graphicsview')
-rw-r--r-- | examples/graphicsview/weatheranchorlayout/main.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/examples/graphicsview/weatheranchorlayout/main.cpp b/examples/graphicsview/weatheranchorlayout/main.cpp index aa06476..391fdd8 100644 --- a/examples/graphicsview/weatheranchorlayout/main.cpp +++ b/examples/graphicsview/weatheranchorlayout/main.cpp @@ -97,6 +97,8 @@ protected: case Qt::MaximumSize: sh = QSizeF(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX); break; + default: + break; } return sh; } @@ -167,15 +169,6 @@ private: }; -static QGraphicsProxyWidget *createItem(const QString &name = "Unnamed") -{ - QGraphicsProxyWidget *w = new QGraphicsProxyWidget; - w->setWidget(new QPushButton(name)); - w->setData(0, name); - w->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); - return w; -} - int main(int argc, char **argv) { Q_INIT_RESOURCE(weatheranchorlayout); |