Squashed commit of the changes from the mobile-examples repository
authorDavid Boddie <david.boddie@nokia.com>
Wed, 27 Apr 2011 17:16:41 +0000 (19:16 +0200)
committerDavid Boddie <david.boddie@nokia.com>
Fri, 20 May 2011 19:08:53 +0000 (21:08 +0200)
(4.7-generated-declarative branch).
(cherry picked from commit 539311f7b2687e3148ea695ce06fee768abe7b44)

12 files changed:
doc/src/examples/recipes.qdoc
doc/src/examples/schema.qdoc
examples/xmlpatterns/filetree/filetree.pro
examples/xmlpatterns/recipes/main.cpp
examples/xmlpatterns/recipes/querymainwindow.h
examples/xmlpatterns/recipes/recipes.pro
examples/xmlpatterns/schema/main.cpp
examples/xmlpatterns/schema/mainwindow.h
examples/xmlpatterns/schema/schema.pro
examples/xmlpatterns/trafficinfo/trafficinfo.pro
examples/xmlpatterns/xquery/globalVariables/globalVariables.pro
examples/xmlpatterns/xquery/xquery.pro

index f34fe3b..8e9619a 100644 (file)
@@ -29,7 +29,7 @@
   \example xmlpatterns/recipes
   \title Recipes Example
 
-  The recipes example shows how to use QtXmlPatterns to query XML data
+  The Recipes example shows how to use QtXmlPatterns to query XML data
   loaded from a file. 
 
   \tableofcontents
index 1cc4ed3..3fab7d6 100644 (file)
@@ -29,8 +29,8 @@
   \example xmlpatterns/schema
   \title XML Schema Validation Example
 
-  This example shows how to use QtXmlPatterns to validate XML with
-  a W3C XML Schema.
+  The XML Schema Validation example shows how to use QtXmlPatterns to
+  validate XML with a W3C XML Schema.
 
   \tableofcontents
 
index 0ba5621..943030b 100644 (file)
@@ -15,3 +15,8 @@ symbian {
     TARGET.UID3 = 0xA000D7C4
     CONFIG += qt_example
 }
+maemo5: include($$QT_SOURCE_TREE/examples/maemo5pkgrules.pri)
+
+symbian: warning(This example might not fully work on Symbian platform)
+maemo5: warning(This example might not fully work on Maemo platform)
+simulator: warning(This example might not fully work on Simulator platform)
index cf679f5..2ff2460 100644 (file)
@@ -47,7 +47,11 @@ int main(int argc, char* argv[])
     Q_INIT_RESOURCE(recipes);
     QApplication app(argc, argv);
     QueryMainWindow* const queryWindow = new QueryMainWindow;
+#ifdef Q_OS_SYMBIAN
+    queryWindow->showMaximized();
+#else
     queryWindow->show();
+#endif
     return app.exec();
 }
 //! [0]
index 675b047..57666b6 100644 (file)
 
 #include <QMainWindow>
 
-#include "ui_querywidget.h"
+#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
+    #include "ui_querywidget_mobiles.h"
+#else
+    #include "ui_querywidget.h"
+#endif
 
 QT_BEGIN_NAMESPACE
 class QComboBox;
index 8c39bbe..ef01132 100644 (file)
@@ -1,5 +1,6 @@
 QT          += xmlpatterns
-FORMS       += forms/querywidget.ui
+FORMS       += forms/querywidget.ui \
+               forms/querywidget_mobiles.ui
 HEADERS     = querymainwindow.h ../shared/xmlsyntaxhighlighter.h
 RESOURCES   = recipes.qrc
 SOURCES     = main.cpp querymainwindow.cpp ../shared/xmlsyntaxhighlighter.cpp
@@ -14,3 +15,5 @@ symbian {
     TARGET.UID3 = 0xA000D7C5
     CONFIG += qt_example
 }
+maemo5: include($$QT_SOURCE_TREE/examples/maemo5pkgrules.pri)
+
index d501b5f..fc5f40d 100644 (file)
@@ -47,7 +47,11 @@ int main(int argc, char* argv[])
     Q_INIT_RESOURCE(schema);
     QApplication app(argc, argv);
     MainWindow* const window = new MainWindow;
+#ifdef Q_OS_SYMBIAN
+    window->showMaximized();
+#else
     window->show();
+#endif
     return app.exec();
 }
 //! [0]
index 2bec81d..a5948b5 100644 (file)
 
 #include <QMainWindow>
 
-#include "ui_schema.h"
+#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
+    #include "ui_schema_mobiles.h"
+#else
+    #include "ui_schema.h"
+#endif
 
 //! [0]
 class MainWindow : public QMainWindow,
index 204d2e0..6fa16ef 100644 (file)
@@ -1,5 +1,5 @@
 QT          += xmlpatterns
-FORMS       += schema.ui
+FORMS       += schema.ui schema_mobiles.ui
 HEADERS     = mainwindow.h ../shared/xmlsyntaxhighlighter.h
 RESOURCES   = schema.qrc
 SOURCES     = main.cpp mainwindow.cpp ../shared/xmlsyntaxhighlighter.cpp
@@ -14,3 +14,5 @@ symbian {
     TARGET.UID3 = 0xA000D7C6
     CONFIG += qt_example
 }
+maemo5: include($$QT_SOURCE_TREE/examples/maemo5pkgrules.pri)
+
index c9c0bbe..33ddc78 100644 (file)
@@ -12,3 +12,8 @@ symbian {
     TARGET.UID3 = 0xA000D7C7
     CONFIG += qt_example
 }
+maemo5: include($$QT_SOURCE_TREE/examples/maemo5pkgrules.pri)
+
+symbian: warning(This example might not fully work on Symbian platform)
+maemo5: warning(This example might not fully work on Maemo platform)
+simulator: warning(This example might not fully work on Simulator platform)
index 669b0f7..b5c695d 100644 (file)
@@ -9,3 +9,4 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtxmlpatterns/xmlpatterns/xquery/globalVa
 INSTALLS += target sources
 
 symbian: CONFIG += qt_example
+maemo5: CONFIG += qt_example
index f0f1a0c..5e5c4fa 100644 (file)
@@ -8,3 +8,4 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtxmlpatterns/xmlpatterns/xquery
 INSTALLS += target sources
 
 symbian: CONFIG += qt_example
+maemo5: CONFIG += qt_example