diff options
author | Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> | 2017-06-29 16:36:39 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2017-07-10 07:37:11 +0000 |
commit | 815cae4eb4887956a62e12ca357a0ec797dfc08f (patch) | |
tree | b8ef217d2ef10055c42b9a4fe81027d6fba15b3d /examples | |
parent | 8bc2feb498cbbeafe0de52cda929ef7a881c0351 (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.qml | 2 | ||||
-rw-r--r-- | examples/quickcontrols2/chattutorial/chapter3-navigation/ContactPage.qml | 2 | ||||
-rw-r--r-- | examples/quickcontrols2/chattutorial/chapter4-models/ContactPage.qml | 2 | ||||
-rw-r--r-- | examples/quickcontrols2/chattutorial/chapter4-models/ConversationPage.qml | 2 | ||||
-rw-r--r-- | examples/quickcontrols2/chattutorial/chapter5-styling/ContactPage.qml | 2 | ||||
-rw-r--r-- | examples/quickcontrols2/chattutorial/chapter5-styling/ConversationPage.qml | 2 | ||||
-rw-r--r-- | examples/quickcontrols2/chattutorial/shared/Albert_Einstein.png (renamed from examples/quickcontrols2/chattutorial/shared/Albert Einstein.png) | bin | 3638 -> 3638 bytes | |||
-rw-r--r-- | examples/quickcontrols2/chattutorial/shared/Albert_Einstein@2x.png (renamed from examples/quickcontrols2/chattutorial/shared/Albert Einstein@2x.png) | bin | 10178 -> 10178 bytes | |||
-rw-r--r-- | examples/quickcontrols2/chattutorial/shared/Albert_Einstein@3x.png (renamed from examples/quickcontrols2/chattutorial/shared/Albert Einstein@3x.png) | bin | 18568 -> 18568 bytes | |||
-rw-r--r-- | examples/quickcontrols2/chattutorial/shared/Albert_Einstein@4x.png (renamed from examples/quickcontrols2/chattutorial/shared/Albert Einstein@4x.png) | bin | 29420 -> 29420 bytes | |||
-rw-r--r-- | examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway.png (renamed from examples/quickcontrols2/chattutorial/shared/Ernest Hemingway.png) | bin | 4053 -> 4053 bytes | |||
-rw-r--r-- | examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@2x.png (renamed from examples/quickcontrols2/chattutorial/shared/Ernest Hemingway@2x.png) | bin | 12231 -> 12231 bytes | |||
-rw-r--r-- | examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@3x.png (renamed from examples/quickcontrols2/chattutorial/shared/Ernest Hemingway@3x.png) | bin | 23040 -> 23040 bytes | |||
-rw-r--r-- | examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@4x.png (renamed from examples/quickcontrols2/chattutorial/shared/Ernest Hemingway@4x.png) | bin | 38378 -> 38378 bytes | |||
-rw-r--r-- | examples/quickcontrols2/chattutorial/shared/Hans_Gude.png (renamed from examples/quickcontrols2/chattutorial/shared/Hans Gude.png) | bin | 3610 -> 3610 bytes | |||
-rw-r--r-- | examples/quickcontrols2/chattutorial/shared/Hans_Gude@2x.png (renamed from examples/quickcontrols2/chattutorial/shared/Hans Gude@2x.png) | bin | 10977 -> 10977 bytes | |||
-rw-r--r-- | examples/quickcontrols2/chattutorial/shared/Hans_Gude@3x.png (renamed from examples/quickcontrols2/chattutorial/shared/Hans Gude@3x.png) | bin | 21196 -> 21196 bytes | |||
-rw-r--r-- | examples/quickcontrols2/chattutorial/shared/Hans_Gude@4x.png (renamed from examples/quickcontrols2/chattutorial/shared/Hans Gude@4x.png) | bin | 32962 -> 32962 bytes | |||
-rw-r--r-- | examples/quickcontrols2/chattutorial/shared/shared.qrc | 24 |
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 Binary files differindex 47cb15f6..47cb15f6 100644 --- a/examples/quickcontrols2/chattutorial/shared/Albert Einstein.png +++ b/examples/quickcontrols2/chattutorial/shared/Albert_Einstein.png diff --git a/examples/quickcontrols2/chattutorial/shared/Albert Einstein@2x.png b/examples/quickcontrols2/chattutorial/shared/Albert_Einstein@2x.png Binary files differindex c80ddd15..c80ddd15 100644 --- a/examples/quickcontrols2/chattutorial/shared/Albert Einstein@2x.png +++ b/examples/quickcontrols2/chattutorial/shared/Albert_Einstein@2x.png diff --git a/examples/quickcontrols2/chattutorial/shared/Albert Einstein@3x.png b/examples/quickcontrols2/chattutorial/shared/Albert_Einstein@3x.png Binary files differindex 41778835..41778835 100644 --- a/examples/quickcontrols2/chattutorial/shared/Albert Einstein@3x.png +++ b/examples/quickcontrols2/chattutorial/shared/Albert_Einstein@3x.png diff --git a/examples/quickcontrols2/chattutorial/shared/Albert Einstein@4x.png b/examples/quickcontrols2/chattutorial/shared/Albert_Einstein@4x.png Binary files differindex 88768902..88768902 100644 --- a/examples/quickcontrols2/chattutorial/shared/Albert Einstein@4x.png +++ b/examples/quickcontrols2/chattutorial/shared/Albert_Einstein@4x.png diff --git a/examples/quickcontrols2/chattutorial/shared/Ernest Hemingway.png b/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway.png Binary files differindex 988c2416..988c2416 100644 --- a/examples/quickcontrols2/chattutorial/shared/Ernest Hemingway.png +++ b/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway.png diff --git a/examples/quickcontrols2/chattutorial/shared/Ernest Hemingway@2x.png b/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@2x.png Binary files differindex efffc1f2..efffc1f2 100644 --- a/examples/quickcontrols2/chattutorial/shared/Ernest Hemingway@2x.png +++ b/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@2x.png diff --git a/examples/quickcontrols2/chattutorial/shared/Ernest Hemingway@3x.png b/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@3x.png Binary files differindex 12633ec2..12633ec2 100644 --- a/examples/quickcontrols2/chattutorial/shared/Ernest Hemingway@3x.png +++ b/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@3x.png diff --git a/examples/quickcontrols2/chattutorial/shared/Ernest Hemingway@4x.png b/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@4x.png Binary files differindex f5639280..f5639280 100644 --- a/examples/quickcontrols2/chattutorial/shared/Ernest Hemingway@4x.png +++ b/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@4x.png diff --git a/examples/quickcontrols2/chattutorial/shared/Hans Gude.png b/examples/quickcontrols2/chattutorial/shared/Hans_Gude.png Binary files differindex 7367a4a4..7367a4a4 100644 --- a/examples/quickcontrols2/chattutorial/shared/Hans Gude.png +++ b/examples/quickcontrols2/chattutorial/shared/Hans_Gude.png diff --git a/examples/quickcontrols2/chattutorial/shared/Hans Gude@2x.png b/examples/quickcontrols2/chattutorial/shared/Hans_Gude@2x.png Binary files differindex c3a394e1..c3a394e1 100644 --- a/examples/quickcontrols2/chattutorial/shared/Hans Gude@2x.png +++ b/examples/quickcontrols2/chattutorial/shared/Hans_Gude@2x.png diff --git a/examples/quickcontrols2/chattutorial/shared/Hans Gude@3x.png b/examples/quickcontrols2/chattutorial/shared/Hans_Gude@3x.png Binary files differindex 38ec67ee..38ec67ee 100644 --- a/examples/quickcontrols2/chattutorial/shared/Hans Gude@3x.png +++ b/examples/quickcontrols2/chattutorial/shared/Hans_Gude@3x.png diff --git a/examples/quickcontrols2/chattutorial/shared/Hans Gude@4x.png b/examples/quickcontrols2/chattutorial/shared/Hans_Gude@4x.png Binary files differindex 8c75d3e0..8c75d3e0 100644 --- a/examples/quickcontrols2/chattutorial/shared/Hans Gude@4x.png +++ b/examples/quickcontrols2/chattutorial/shared/Hans_Gude@4x.png 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> |