aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>2017-06-29 16:36:39 +0200
committerLiang Qi <liang.qi@qt.io>2017-07-10 07:37:11 +0000
commit815cae4eb4887956a62e12ca357a0ec797dfc08f (patch)
treeb8ef217d2ef10055c42b9a4fe81027d6fba15b3d /examples
parent8bc2feb498cbbeafe0de52cda929ef7a881c0351 (diff)
Example: Replace spaces from the image file name
Updated the corresponding qml files where these images are used. The spaces in file name stops qdoc from listing the file in the example page. Change-Id: I45b24ec88d367fe229fe365eeb611b86de805e0d Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/quickcontrols2/chattutorial/chapter2-lists/main.qml2
-rw-r--r--examples/quickcontrols2/chattutorial/chapter3-navigation/ContactPage.qml2
-rw-r--r--examples/quickcontrols2/chattutorial/chapter4-models/ContactPage.qml2
-rw-r--r--examples/quickcontrols2/chattutorial/chapter4-models/ConversationPage.qml2
-rw-r--r--examples/quickcontrols2/chattutorial/chapter5-styling/ContactPage.qml2
-rw-r--r--examples/quickcontrols2/chattutorial/chapter5-styling/ConversationPage.qml2
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Albert_Einstein.png (renamed from examples/quickcontrols2/chattutorial/shared/Albert Einstein.png)bin3638 -> 3638 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Albert_Einstein@2x.png (renamed from examples/quickcontrols2/chattutorial/shared/Albert Einstein@2x.png)bin10178 -> 10178 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Albert_Einstein@3x.png (renamed from examples/quickcontrols2/chattutorial/shared/Albert Einstein@3x.png)bin18568 -> 18568 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Albert_Einstein@4x.png (renamed from examples/quickcontrols2/chattutorial/shared/Albert Einstein@4x.png)bin29420 -> 29420 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway.png (renamed from examples/quickcontrols2/chattutorial/shared/Ernest Hemingway.png)bin4053 -> 4053 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@2x.png (renamed from examples/quickcontrols2/chattutorial/shared/Ernest Hemingway@2x.png)bin12231 -> 12231 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@3x.png (renamed from examples/quickcontrols2/chattutorial/shared/Ernest Hemingway@3x.png)bin23040 -> 23040 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@4x.png (renamed from examples/quickcontrols2/chattutorial/shared/Ernest Hemingway@4x.png)bin38378 -> 38378 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Hans_Gude.png (renamed from examples/quickcontrols2/chattutorial/shared/Hans Gude.png)bin3610 -> 3610 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Hans_Gude@2x.png (renamed from examples/quickcontrols2/chattutorial/shared/Hans Gude@2x.png)bin10977 -> 10977 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Hans_Gude@3x.png (renamed from examples/quickcontrols2/chattutorial/shared/Hans Gude@3x.png)bin21196 -> 21196 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Hans_Gude@4x.png (renamed from examples/quickcontrols2/chattutorial/shared/Hans Gude@4x.png)bin32962 -> 32962 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/shared.qrc24
19 files changed, 18 insertions, 18 deletions
diff --git a/examples/quickcontrols2/chattutorial/chapter2-lists/main.qml b/examples/quickcontrols2/chattutorial/chapter2-lists/main.qml
index 289b4545..150fd004 100644
--- a/examples/quickcontrols2/chattutorial/chapter2-lists/main.qml
+++ b/examples/quickcontrols2/chattutorial/chapter2-lists/main.qml
@@ -83,7 +83,7 @@ ApplicationWindow {
Image {
id: avatar
- source: "qrc:/" + modelData + ".png"
+ source: "qrc:/" + modelData.replace(" ", "_") + ".png"
}
}
}
diff --git a/examples/quickcontrols2/chattutorial/chapter3-navigation/ContactPage.qml b/examples/quickcontrols2/chattutorial/chapter3-navigation/ContactPage.qml
index 80f2bad6..200fa0ae 100644
--- a/examples/quickcontrols2/chattutorial/chapter3-navigation/ContactPage.qml
+++ b/examples/quickcontrols2/chattutorial/chapter3-navigation/ContactPage.qml
@@ -80,7 +80,7 @@ Page {
Image {
id: avatar
- source: "qrc:/" + modelData + ".png"
+ source: "qrc:/" + modelData.replace(" ", "_") + ".png"
}
}
}
diff --git a/examples/quickcontrols2/chattutorial/chapter4-models/ContactPage.qml b/examples/quickcontrols2/chattutorial/chapter4-models/ContactPage.qml
index 23c414fb..1051b189 100644
--- a/examples/quickcontrols2/chattutorial/chapter4-models/ContactPage.qml
+++ b/examples/quickcontrols2/chattutorial/chapter4-models/ContactPage.qml
@@ -82,7 +82,7 @@ Page {
Image {
id: avatar
- source: "qrc:/" + model.display + ".png"
+ source: "qrc:/" + model.display.replace(" ", "_") + ".png"
}
}
}
diff --git a/examples/quickcontrols2/chattutorial/chapter4-models/ConversationPage.qml b/examples/quickcontrols2/chattutorial/chapter4-models/ConversationPage.qml
index 490202b6..bcae4b99 100644
--- a/examples/quickcontrols2/chattutorial/chapter4-models/ConversationPage.qml
+++ b/examples/quickcontrols2/chattutorial/chapter4-models/ConversationPage.qml
@@ -104,7 +104,7 @@ Page {
Image {
id: avatar
- source: !sentByMe ? "qrc:/" + model.author + ".png" : ""
+ source: !sentByMe ? "qrc:/" + model.author.replace(" ", "_") + ".png" : ""
}
Rectangle {
diff --git a/examples/quickcontrols2/chattutorial/chapter5-styling/ContactPage.qml b/examples/quickcontrols2/chattutorial/chapter5-styling/ContactPage.qml
index 1ea449fe..ad37ba5f 100644
--- a/examples/quickcontrols2/chattutorial/chapter5-styling/ContactPage.qml
+++ b/examples/quickcontrols2/chattutorial/chapter5-styling/ContactPage.qml
@@ -82,7 +82,7 @@ Page {
Image {
id: avatar
- source: "qrc:/" + model.display + ".png"
+ source: "qrc:/" + model.display.replace(" ", "_") + ".png"
}
}
}
diff --git a/examples/quickcontrols2/chattutorial/chapter5-styling/ConversationPage.qml b/examples/quickcontrols2/chattutorial/chapter5-styling/ConversationPage.qml
index 6f873162..2ec6a55e 100644
--- a/examples/quickcontrols2/chattutorial/chapter5-styling/ConversationPage.qml
+++ b/examples/quickcontrols2/chattutorial/chapter5-styling/ConversationPage.qml
@@ -104,7 +104,7 @@ Page {
Image {
id: avatar
- source: !sentByMe ? "qrc:/" + model.author + ".png" : ""
+ source: !sentByMe ? "qrc:/" + model.author.replace(" ", "_") + ".png" : ""
}
Rectangle {
diff --git a/examples/quickcontrols2/chattutorial/shared/Albert Einstein.png b/examples/quickcontrols2/chattutorial/shared/Albert_Einstein.png
index 47cb15f6..47cb15f6 100644
--- a/examples/quickcontrols2/chattutorial/shared/Albert Einstein.png
+++ b/examples/quickcontrols2/chattutorial/shared/Albert_Einstein.png
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/Albert Einstein@2x.png b/examples/quickcontrols2/chattutorial/shared/Albert_Einstein@2x.png
index c80ddd15..c80ddd15 100644
--- a/examples/quickcontrols2/chattutorial/shared/Albert Einstein@2x.png
+++ b/examples/quickcontrols2/chattutorial/shared/Albert_Einstein@2x.png
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/Albert Einstein@3x.png b/examples/quickcontrols2/chattutorial/shared/Albert_Einstein@3x.png
index 41778835..41778835 100644
--- a/examples/quickcontrols2/chattutorial/shared/Albert Einstein@3x.png
+++ b/examples/quickcontrols2/chattutorial/shared/Albert_Einstein@3x.png
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/Albert Einstein@4x.png b/examples/quickcontrols2/chattutorial/shared/Albert_Einstein@4x.png
index 88768902..88768902 100644
--- a/examples/quickcontrols2/chattutorial/shared/Albert Einstein@4x.png
+++ b/examples/quickcontrols2/chattutorial/shared/Albert_Einstein@4x.png
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/Ernest Hemingway.png b/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway.png
index 988c2416..988c2416 100644
--- a/examples/quickcontrols2/chattutorial/shared/Ernest Hemingway.png
+++ b/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway.png
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/Ernest Hemingway@2x.png b/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@2x.png
index efffc1f2..efffc1f2 100644
--- a/examples/quickcontrols2/chattutorial/shared/Ernest Hemingway@2x.png
+++ b/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@2x.png
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/Ernest Hemingway@3x.png b/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@3x.png
index 12633ec2..12633ec2 100644
--- a/examples/quickcontrols2/chattutorial/shared/Ernest Hemingway@3x.png
+++ b/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@3x.png
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/Ernest Hemingway@4x.png b/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@4x.png
index f5639280..f5639280 100644
--- a/examples/quickcontrols2/chattutorial/shared/Ernest Hemingway@4x.png
+++ b/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@4x.png
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/Hans Gude.png b/examples/quickcontrols2/chattutorial/shared/Hans_Gude.png
index 7367a4a4..7367a4a4 100644
--- a/examples/quickcontrols2/chattutorial/shared/Hans Gude.png
+++ b/examples/quickcontrols2/chattutorial/shared/Hans_Gude.png
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/Hans Gude@2x.png b/examples/quickcontrols2/chattutorial/shared/Hans_Gude@2x.png
index c3a394e1..c3a394e1 100644
--- a/examples/quickcontrols2/chattutorial/shared/Hans Gude@2x.png
+++ b/examples/quickcontrols2/chattutorial/shared/Hans_Gude@2x.png
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/Hans Gude@3x.png b/examples/quickcontrols2/chattutorial/shared/Hans_Gude@3x.png
index 38ec67ee..38ec67ee 100644
--- a/examples/quickcontrols2/chattutorial/shared/Hans Gude@3x.png
+++ b/examples/quickcontrols2/chattutorial/shared/Hans_Gude@3x.png
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/Hans Gude@4x.png b/examples/quickcontrols2/chattutorial/shared/Hans_Gude@4x.png
index 8c75d3e0..8c75d3e0 100644
--- a/examples/quickcontrols2/chattutorial/shared/Hans Gude@4x.png
+++ b/examples/quickcontrols2/chattutorial/shared/Hans_Gude@4x.png
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/shared.qrc b/examples/quickcontrols2/chattutorial/shared/shared.qrc
index 8e112513..9eda6aa2 100644
--- a/examples/quickcontrols2/chattutorial/shared/shared.qrc
+++ b/examples/quickcontrols2/chattutorial/shared/shared.qrc
@@ -1,16 +1,16 @@
<RCC>
<qresource prefix="/">
- <file>Albert Einstein.png</file>
- <file>Albert Einstein@2x.png</file>
- <file>Albert Einstein@3x.png</file>
- <file>Albert Einstein@4x.png</file>
- <file>Ernest Hemingway.png</file>
- <file>Ernest Hemingway@2x.png</file>
- <file>Ernest Hemingway@3x.png</file>
- <file>Ernest Hemingway@4x.png</file>
- <file>Hans Gude.png</file>
- <file>Hans Gude@2x.png</file>
- <file>Hans Gude@3x.png</file>
- <file>Hans Gude@4x.png</file>
+ <file>Albert_Einstein.png</file>
+ <file>Albert_Einstein@2x.png</file>
+ <file>Albert_Einstein@3x.png</file>
+ <file>Albert_Einstein@4x.png</file>
+ <file>Ernest_Hemingway.png</file>
+ <file>Ernest_Hemingway@2x.png</file>
+ <file>Ernest_Hemingway@3x.png</file>
+ <file>Ernest_Hemingway@4x.png</file>
+ <file>Hans_Gude.png</file>
+ <file>Hans_Gude@2x.png</file>
+ <file>Hans_Gude@3x.png</file>
+ <file>Hans_Gude@4x.png</file>
</qresource>
</RCC>