summaryrefslogtreecommitdiffstats
path: root/examples/tutorial
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@digia.com>2012-11-05 12:00:29 +0100
committerGunnar Sletta <gunnar.sletta@digia.com>2012-11-05 12:01:55 +0100
commit02cd7b25bee996459299d76ceb0b08b11a1ce193 (patch)
tree77d2eeb05293ff7bae55421ef3c2f568e8b98299 /examples/tutorial
parentab392456e78e25c77e62b8b7c692144960dc94f9 (diff)
code slide...
Diffstat (limited to 'examples/tutorial')
-rw-r--r--examples/tutorial/SlideDeck.qml25
1 files changed, 23 insertions, 2 deletions
diff --git a/examples/tutorial/SlideDeck.qml b/examples/tutorial/SlideDeck.qml
index 50c13b5..ee26630 100644
--- a/examples/tutorial/SlideDeck.qml
+++ b/examples/tutorial/SlideDeck.qml
@@ -156,13 +156,34 @@ Presentation
}
-
+ CodeSlide {
+ title: "CodeSlide {} Element"
+ code:
+"CodeSlide {
+ title: \"CodeSlide {} Element\"
+ code:
+\"
+// Whitespaces are preserved,
+// so we start at the beginning of the line...
+
+// You can mouse click on any line
+
+// Navigate with keypad when the code has focus
+
+int main(int argc, char **argv) {
+ QGuiApplication app;
+ QWindow window;
+ window.show();
+ return app.exec();
+}
+\" "
+ }
Slide {
title: "Font size relative to screen size"
content: [
"Which means you don't need to worry about it",
- "Bullet points wraps around on the edges, regardless of how long they are, like this. Even if you should choose to use a very long bullet point (which would distract your audience) it would still look ok'ish",
+ "Bullet points wrap around on the edges, regardless of how long they are, like this. Even if you should choose to use a very long bullet point (which would distract your audience) it would still look ok'ish",
"If you run out of height, you're out of luck though..."
]
}