]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - apps/thermostat-demo.git/blobdiff - weatherwidget.h
Update to support both Qt 4 and Qt 5
[apps/thermostat-demo.git] / weatherwidget.h
index bffb368ea9403dbe616ec6d7205df1be13a5a087..7129d57a784e015e4f1d0d493da6335466b52f54 100644 (file)
@@ -1,10 +1,19 @@
 #ifndef WEATHERWIDGET_H\r
 #define WEATHERWIDGET_H\r
 \r
+#include <qglobal.h>\r
 #include <QtGui>\r
-\r
 #include <QtSvg/QSvgWidget>\r
 \r
+#if QT_VERSION >= 0x050000\r
+\r
+#include <QStackedWidget>\r
+#include <QLabel>\r
+#include <QHBoxLayout>\r
+#include <QVBoxLayout>\r
+\r
+#endif\r
+\r
 class QLabel;\r
 class WeatherData;\r
 class WeatherDataWidget;\r