summaryrefslogtreecommitdiffstats
path: root/examples/widgets/orientation
diff options
context:
space:
mode:
authorsuzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>2011-09-03 14:20:46 (GMT)
committerLiang Qi <liang.qi@nokia.com>2011-09-06 13:30:26 (GMT)
commita5211c5c259f2741bf1f3f9dabf6587516eee052 (patch)
treeddf9a88ed82130eb19b9cd136ca3b6b277002b5e /examples/widgets/orientation
parent02f55668dada4a23ab84e4d3bda1df8a4984b3ae (diff)
downloadQt-a5211c5c259f2741bf1f3f9dabf6587516eee052.zip
Qt-a5211c5c259f2741bf1f3f9dabf6587516eee052.tar.gz
Qt-a5211c5c259f2741bf1f3f9dabf6587516eee052.tar.bz2
Fix the build with -qtnamespace configure options
Merge-Request: 1291 Reviewed-by: Liang Qi <liang.qi@nokia.com>
Diffstat (limited to 'examples/widgets/orientation')
-rw-r--r--examples/widgets/orientation/mainwindow.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/widgets/orientation/mainwindow.h b/examples/widgets/orientation/mainwindow.h
index 745497c..29ccf06 100644
--- a/examples/widgets/orientation/mainwindow.h
+++ b/examples/widgets/orientation/mainwindow.h
@@ -46,6 +46,10 @@
#include "ui_landscape.h"
#include "ui_portrait.h"
+class QAbstractButton;
+
+QT_BEGIN_NAMESPACE
+
//! [0]
class MainWindow : public QWidget
{
@@ -68,4 +72,6 @@ private:
};
//! [0]
+QT_END_NAMESPACE
+
#endif // MAINWINDOW_H