diff options
author | Daniel d'Andrada <daniel.dandrada@nokia.com> | 2010-04-23 09:37:06 +0300 |
---|---|---|
committer | Daniel d'Andrada <daniel.dandrada@nokia.com> | 2010-04-23 09:41:39 +0300 |
commit | d3849623b695936957bb7ed845d792a73e5b77ce (patch) | |
tree | 48ff54620e2df635747f9d9aa5e89c85af7d3081 /examples | |
parent | 47177da581638a96658dac0a90bbcb15d0d232c9 (diff) |
New: First part of the "MeeGo Touch Tutorial"
RevBy: TrustMe
Details: Still lot's of stuff to be written.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/tutorial/tutorial.pro | 11 | ||||
-rw-r--r-- | examples/tutorial/tutorial_main_step_01.cpp | 8 | ||||
-rw-r--r-- | examples/tutorial/tutorial_main_step_02.cpp | 12 | ||||
-rw-r--r-- | examples/tutorial/tutorial_main_step_03.cpp | 19 |
4 files changed, 50 insertions, 0 deletions
diff --git a/examples/tutorial/tutorial.pro b/examples/tutorial/tutorial.pro new file mode 100644 index 00000000..56e5061f --- /dev/null +++ b/examples/tutorial/tutorial.pro @@ -0,0 +1,11 @@ +###################################################################### +# Automatically generated by qmake (2.01a) Tue Apr 20 14:00:01 2010 +###################################################################### + +TEMPLATE = app +TARGET =. +DEPENDPATH += . +INCLUDEPATH += . + +# Input +SOURCES += main.cpp diff --git a/examples/tutorial/tutorial_main_step_01.cpp b/examples/tutorial/tutorial_main_step_01.cpp new file mode 100644 index 00000000..a477ae10 --- /dev/null +++ b/examples/tutorial/tutorial_main_step_01.cpp @@ -0,0 +1,8 @@ +#include <MApplication> + +int main(int argc, char **argv) +{ + MApplication app(argc, argv); + + return app.exec(); +} diff --git a/examples/tutorial/tutorial_main_step_02.cpp b/examples/tutorial/tutorial_main_step_02.cpp new file mode 100644 index 00000000..911c5ba3 --- /dev/null +++ b/examples/tutorial/tutorial_main_step_02.cpp @@ -0,0 +1,12 @@ +#include <MApplication> +#include <MApplicationWindow> + +int main(int argc, char **argv) +{ + MApplication app(argc, argv); + MApplicationWindow window; + + window.show(); + + return app.exec(); +} diff --git a/examples/tutorial/tutorial_main_step_03.cpp b/examples/tutorial/tutorial_main_step_03.cpp new file mode 100644 index 00000000..c0d27089 --- /dev/null +++ b/examples/tutorial/tutorial_main_step_03.cpp @@ -0,0 +1,19 @@ +#include <MApplication> +#include <MApplicationWindow> +#include <MApplicationPage> +#include <MLabel> + +int main(int argc, char **argv) +{ + MApplication app(argc, argv); + MApplicationWindow window; + MApplicationPage page; + + page.setTitle("My First Page"); + page.setCentralWidget(new MLabel("Hello World!")); + page.appear(); + + window.show(); + + return app.exec(); +} |