Merge lp:~nik90/ureadit/migrate-15.04 into lp:ureadit/3.0
- migrate-15.04
- Merge into 3.0
Status: | Needs review |
---|---|
Proposed branch: | lp:~nik90/ureadit/migrate-15.04 |
Merge into: | lp:ureadit/3.0 |
Diff against target: |
1222 lines (+341/-217) 45 files modified
Main.qml (+2/-5) components/BorderIcon.qml (+1/-1) components/CommentListItem.qml (+2/-2) components/EmptyState.qml (+49/-0) components/KeyboardNavPage.qml (+2/-2) components/LargeImagePostItem.qml (+2/-2) components/MoreCommentsItem.qml (+2/-2) components/MultiColumnListView.qml (+1/-1) components/PostCommentItem.qml (+6/-17) components/PostImage.qml (+1/-1) components/PostListItem.qml (+6/-16) components/PostMessageItem.qml (+3/-14) components/ScrollToTop.qml (+1/-1) components/SmallImagePostItem.qml (+2/-2) components/StretchRow.qml (+1/-1) components/UserMessageItem.qml (+8/-19) manifest.json (+1/-1) models/QReddit/ConnectionObject.qml (+1/-1) models/QReddit/MoreCommentsListModel.qml (+1/-1) models/QReddit/NotifierObject.qml (+1/-1) models/QReddit/PostCommentsListModel.qml (+1/-1) models/QReddit/QRHelper.js (+1/-1) models/QReddit/QRObjects.js (+1/-1) models/QReddit/SubredditListModel.qml (+1/-1) models/QReddit/UserMessagesListModel.qml (+1/-1) po/template.pot (+90/-49) themes/Ambiance.qml (+2/-2) themes/RedditDark.qml (+2/-2) themes/RedditLight.qml (+2/-2) themes/ThemeManager.qml (+2/-2) ui/AboutPage.qml (+2/-2) ui/ArticlePage.qml (+2/-2) ui/CommentsPage.qml (+2/-2) ui/Frontpage.qml (+3/-3) ui/InternalBrowserPage.qml (+2/-2) ui/MoreCommentsPage.qml (+2/-2) ui/PostMessagePage.qml (+2/-2) ui/SettingsPage.qml (+2/-2) ui/ShareImagePage.qml (+2/-2) ui/ShareLinkPage.qml (+2/-2) ui/SubredditPage.qml (+3/-3) ui/SubredditSwitcherPage.qml (+2/-2) ui/UserAccountsPage.qml (+116/-36) ui/UserMessagesPage.qml (+2/-2) ureadit.apparmor (+1/-1) |
To merge this branch: | bzr merge lp:~nik90/ureadit/migrate-15.04 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Hall | Needs Information | ||
Review via email: mp+265878@code.launchpad.net |
Commit message
- Updated to 15.04 framework and QtQuick 2.4
- Removed uses of Haptics{} since it is now provided by the SDK as a singleton (already landed in stable phone images)
- Migrated UserAccountsPage to the new listitem. Fixed bug where a new user added is not shown by the listview immediately.
- Added an empty state to the user accounts page
- Made the UserAccountsPage strings translatable
Description of the change
This MP implements the following,
- Updated to 15.04 framework and QtQuick 2.4
- Removed uses of Haptics{} since it is now provided by the SDK as a singleton (already landed in stable phone images)
- Migrated UserAccountsPage to the new listitem. Fixed bug where a new user added is not shown by the listview immediately.
- Added an empty state to the user accounts page
- Made the UserAccountsPage strings translatable
Michael Hall (mhall119) wrote : | # |
Does Haptics.play() give the same intensity/duration as the manually defined one I was using?
Nekhelesh Ramananthan (nik90) wrote : | # |
Fixed the EmptyState inline comment regarding Ubuntu.Components import version.
> Does Haptics.play() give the same intensity/duration as the manually defined
> one I was using?
It is possible to use custom values by doing something like Haptics.
Haptics.play() will use the default values used elsewhere by the SDK while clicking on the back button, listitems etc.
Do you want me to set the custom values?
- 55. By Nekhelesh Ramananthan
-
Updated empty state ubuntu components import version
Unmerged revisions
- 55. By Nekhelesh Ramananthan
-
Updated empty state ubuntu components import version
- 54. By Nekhelesh Ramananthan
-
Added thin divider for listitem
- 53. By Nekhelesh Ramananthan
-
Merged lp:ureadit
- 52. By Nekhelesh Ramananthan
-
Fixed spacing in UserMessageItem.qml
- 51. By Nekhelesh Ramananthan
-
Made the UserAccountsPage strings translatable
- 50. By Nekhelesh Ramananthan
-
Added an empty state to the user accounts page
- 49. By Nekhelesh Ramananthan
-
Migrated UserAccountsPage to the new listitem. Fixed bug where a new user added is not shown by the listview immediately
- 48. By Nekhelesh Ramananthan
-
Removed uses of Haptics{} since it is now provided by the SDK as a singleton
- 47. By Nekhelesh Ramananthan
-
Updated to 15.04 Framework and QtQuick 2.4
Preview Diff
1 | === modified file 'Main.qml' | |||
2 | --- Main.qml 2015-07-24 19:50:59 +0000 | |||
3 | +++ Main.qml 2015-07-25 07:54:46 +0000 | |||
4 | @@ -1,5 +1,5 @@ | |||
7 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
8 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.2 |
9 | 3 | import Qt.labs.settings 1.0 | 3 | import Qt.labs.settings 1.0 |
10 | 4 | 4 | ||
11 | 5 | import "ui" | 5 | import "ui" |
12 | @@ -25,9 +25,6 @@ | |||
13 | 25 | */ | 25 | */ |
14 | 26 | automaticOrientation: true | 26 | automaticOrientation: true |
15 | 27 | 27 | ||
16 | 28 | // Removes the old toolbar and enables new features of the new header. | ||
17 | 29 | useDeprecatedToolbar: false | ||
18 | 30 | |||
19 | 31 | // Make room for the keyboard | 28 | // Make room for the keyboard |
20 | 32 | anchorToKeyboard: true | 29 | anchorToKeyboard: true |
21 | 33 | 30 | ||
22 | 34 | 31 | ||
23 | === modified file 'components/BorderIcon.qml' | |||
24 | --- components/BorderIcon.qml 2014-12-21 20:02:53 +0000 | |||
25 | +++ components/BorderIcon.qml 2015-07-25 07:54:46 +0000 | |||
26 | @@ -14,7 +14,7 @@ | |||
27 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
28 | 15 | */ | 15 | */ |
29 | 16 | 16 | ||
31 | 17 | import QtQuick 2.0 | 17 | import QtQuick 2.4 |
32 | 18 | 18 | ||
33 | 19 | Item { | 19 | Item { |
34 | 20 | id: icon | 20 | id: icon |
35 | 21 | 21 | ||
36 | === modified file 'components/CommentListItem.qml' | |||
37 | --- components/CommentListItem.qml 2015-02-08 21:05:46 +0000 | |||
38 | +++ components/CommentListItem.qml 2015-07-25 07:54:46 +0000 | |||
39 | @@ -1,5 +1,5 @@ | |||
42 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
43 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.2 |
44 | 3 | 3 | ||
45 | 4 | Item { | 4 | Item { |
46 | 5 | id: commentitemroot | 5 | id: commentitemroot |
47 | 6 | 6 | ||
48 | === added file 'components/EmptyState.qml' | |||
49 | --- components/EmptyState.qml 1970-01-01 00:00:00 +0000 | |||
50 | +++ components/EmptyState.qml 2015-07-25 07:54:46 +0000 | |||
51 | @@ -0,0 +1,49 @@ | |||
52 | 1 | import QtQuick 2.4 | ||
53 | 2 | import Ubuntu.Components 1.2 | ||
54 | 3 | |||
55 | 4 | Item { | ||
56 | 5 | id: emptyState | ||
57 | 6 | |||
58 | 7 | // Public APIs | ||
59 | 8 | property alias iconName: emptyIcon.name | ||
60 | 9 | property alias title: emptyLabel.text | ||
61 | 10 | property alias subTitle: emptySublabel.text | ||
62 | 11 | property alias iconSource: emptyIcon.source | ||
63 | 12 | |||
64 | 13 | property real iconHeight: units.gu(10) | ||
65 | 14 | property real iconWidth: units.gu(10) | ||
66 | 15 | |||
67 | 16 | height: childrenRect.height | ||
68 | 17 | anchors.left: parent.left | ||
69 | 18 | anchors.right: parent.right | ||
70 | 19 | anchors.margins: units.gu(2) | ||
71 | 20 | |||
72 | 21 | Icon { | ||
73 | 22 | id: emptyIcon | ||
74 | 23 | width: parent.iconWidth | ||
75 | 24 | height: parent.iconHeight | ||
76 | 25 | color: uReadIt.currentTheme.baseFontColor | ||
77 | 26 | anchors.horizontalCenter: parent.horizontalCenter | ||
78 | 27 | } | ||
79 | 28 | |||
80 | 29 | Label { | ||
81 | 30 | id: emptyLabel | ||
82 | 31 | anchors.top: emptyIcon.bottom | ||
83 | 32 | anchors.topMargin: units.gu(5) | ||
84 | 33 | width: parent.width | ||
85 | 34 | fontSize: "large" | ||
86 | 35 | font.bold: true | ||
87 | 36 | color: uReadIt.currentTheme.baseFontColor | ||
88 | 37 | horizontalAlignment: Text.AlignHCenter | ||
89 | 38 | wrapMode: Text.WrapAtWordBoundaryOrAnywhere | ||
90 | 39 | } | ||
91 | 40 | |||
92 | 41 | Label { | ||
93 | 42 | id: emptySublabel | ||
94 | 43 | width: parent.width | ||
95 | 44 | anchors.top: emptyLabel.bottom | ||
96 | 45 | color: uReadIt.currentTheme.baseFontColor | ||
97 | 46 | horizontalAlignment: Text.AlignHCenter | ||
98 | 47 | wrapMode: Text.WrapAtWordBoundaryOrAnywhere | ||
99 | 48 | } | ||
100 | 49 | } | ||
101 | 0 | 50 | ||
102 | === modified file 'components/KeyboardNavPage.qml' | |||
103 | --- components/KeyboardNavPage.qml 2015-04-23 10:16:22 +0000 | |||
104 | +++ components/KeyboardNavPage.qml 2015-07-25 07:54:46 +0000 | |||
105 | @@ -1,5 +1,5 @@ | |||
108 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
109 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.2 |
110 | 3 | 3 | ||
111 | 4 | Page { | 4 | Page { |
112 | 5 | 5 | ||
113 | 6 | 6 | ||
114 | === modified file 'components/LargeImagePostItem.qml' | |||
115 | --- components/LargeImagePostItem.qml 2015-04-23 10:16:22 +0000 | |||
116 | +++ components/LargeImagePostItem.qml 2015-07-25 07:54:46 +0000 | |||
117 | @@ -1,5 +1,5 @@ | |||
120 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
121 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.2 |
122 | 3 | 3 | ||
123 | 4 | Item { | 4 | Item { |
124 | 5 | id: postitemroot | 5 | id: postitemroot |
125 | 6 | 6 | ||
126 | === modified file 'components/MoreCommentsItem.qml' | |||
127 | --- components/MoreCommentsItem.qml 2015-04-23 10:16:22 +0000 | |||
128 | +++ components/MoreCommentsItem.qml 2015-07-25 07:54:46 +0000 | |||
129 | @@ -1,5 +1,5 @@ | |||
132 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
133 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.2 |
134 | 3 | import "../utils/RedditLinker.js" as AutoLinkText | 3 | import "../utils/RedditLinker.js" as AutoLinkText |
135 | 4 | 4 | ||
136 | 5 | Rectangle { | 5 | Rectangle { |
137 | 6 | 6 | ||
138 | === modified file 'components/MultiColumnListView.qml' | |||
139 | --- components/MultiColumnListView.qml 2015-02-01 04:44:25 +0000 | |||
140 | +++ components/MultiColumnListView.qml 2015-07-25 07:54:46 +0000 | |||
141 | @@ -1,4 +1,4 @@ | |||
143 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
144 | 2 | 2 | ||
145 | 3 | Flickable { | 3 | Flickable { |
146 | 4 | id: display | 4 | id: display |
147 | 5 | 5 | ||
148 | === modified file 'components/PostCommentItem.qml' | |||
149 | --- components/PostCommentItem.qml 2015-04-23 10:16:22 +0000 | |||
150 | +++ components/PostCommentItem.qml 2015-07-25 07:54:46 +0000 | |||
151 | @@ -1,6 +1,5 @@ | |||
155 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
156 | 2 | import QtFeedback 5.0 | 2 | import Ubuntu.Components 1.2 |
154 | 3 | import Ubuntu.Components 1.1 | ||
157 | 4 | import "../utils/RedditLinker.js" as AutoLinkText | 3 | import "../utils/RedditLinker.js" as AutoLinkText |
158 | 5 | 4 | ||
159 | 6 | Rectangle { | 5 | Rectangle { |
160 | @@ -15,16 +14,6 @@ | |||
161 | 15 | height: childrenRect.height | 14 | height: childrenRect.height |
162 | 16 | anchors.horizontalCenter: parent.horizontalCenter | 15 | anchors.horizontalCenter: parent.horizontalCenter |
163 | 17 | 16 | ||
164 | 18 | HapticsEffect { | ||
165 | 19 | id: pressEffect | ||
166 | 20 | attackIntensity: 0.0 | ||
167 | 21 | attackTime: 50 | ||
168 | 22 | intensity: 1.0 | ||
169 | 23 | duration: 10 | ||
170 | 24 | fadeTime: 50 | ||
171 | 25 | fadeIntensity: 0.0 | ||
172 | 26 | } | ||
173 | 27 | |||
174 | 28 | Column { | 17 | Column { |
175 | 29 | id: commentContents | 18 | id: commentContents |
176 | 30 | anchors.left: parent.left | 19 | anchors.left: parent.left |
177 | @@ -54,7 +43,7 @@ | |||
178 | 54 | 43 | ||
179 | 55 | text: AutoLinkText.Autolinker.link(commentObj.data.body).replace(/\n/g, "<br>\n") | 44 | text: AutoLinkText.Autolinker.link(commentObj.data.body).replace(/\n/g, "<br>\n") |
180 | 56 | 45 | ||
182 | 57 | onLinkActivated: { pressEffect.start(); postCommentItem.parent.linkActivated(link); } | 46 | onLinkActivated: { Haptics.play(); postCommentItem.parent.linkActivated(link); } |
183 | 58 | } | 47 | } |
184 | 59 | 48 | ||
185 | 60 | Item { | 49 | Item { |
186 | @@ -80,7 +69,7 @@ | |||
187 | 80 | anchors.centerIn: parent | 69 | anchors.centerIn: parent |
188 | 81 | height: parent.height * 2 | 70 | height: parent.height * 2 |
189 | 82 | width: parent.width * 2 | 71 | width: parent.width * 2 |
191 | 83 | onClicked: { pressEffect.start(); postCommentItem.parent.upvoteClicked(); } | 72 | onClicked: { Haptics.play(); postCommentItem.parent.upvoteClicked(); } |
192 | 84 | } | 73 | } |
193 | 85 | } | 74 | } |
194 | 86 | Icon { | 75 | Icon { |
195 | @@ -94,7 +83,7 @@ | |||
196 | 94 | anchors.centerIn: parent | 83 | anchors.centerIn: parent |
197 | 95 | height: parent.height * 2 | 84 | height: parent.height * 2 |
198 | 96 | width: parent.width * 2 | 85 | width: parent.width * 2 |
200 | 97 | onClicked: { pressEffect.start(); postCommentItem.parent.downvoteClicked(); } | 86 | onClicked: { Haptics.play(); postCommentItem.parent.downvoteClicked(); } |
201 | 98 | } | 87 | } |
202 | 99 | } | 88 | } |
203 | 100 | Icon { | 89 | Icon { |
204 | @@ -109,7 +98,7 @@ | |||
205 | 109 | anchors.centerIn: parent | 98 | anchors.centerIn: parent |
206 | 110 | height: parent.height * 2 | 99 | height: parent.height * 2 |
207 | 111 | width: parent.width * 2 | 100 | width: parent.width * 2 |
209 | 112 | onClicked: { pressEffect.start(); postCommentItem.parent.replyClicked(); } | 101 | onClicked: { Haptics.play(); postCommentItem.parent.replyClicked(); } |
210 | 113 | } | 102 | } |
211 | 114 | } | 103 | } |
212 | 115 | } | 104 | } |
213 | 116 | 105 | ||
214 | === modified file 'components/PostImage.qml' | |||
215 | --- components/PostImage.qml 2015-01-05 02:58:08 +0000 | |||
216 | +++ components/PostImage.qml 2015-07-25 07:54:46 +0000 | |||
217 | @@ -1,4 +1,4 @@ | |||
219 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
220 | 2 | 2 | ||
221 | 3 | Image { | 3 | Image { |
222 | 4 | id: postThumbnail | 4 | id: postThumbnail |
223 | 5 | 5 | ||
224 | === modified file 'components/PostListItem.qml' | |||
225 | --- components/PostListItem.qml 2015-02-23 22:32:46 +0000 | |||
226 | +++ components/PostListItem.qml 2015-07-25 07:54:46 +0000 | |||
227 | @@ -1,6 +1,5 @@ | |||
231 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
232 | 2 | import QtFeedback 5.0 | 2 | import Ubuntu.Components 1.2 |
230 | 3 | import Ubuntu.Components 1.1 | ||
233 | 4 | import Ubuntu.Connectivity 1.0 | 3 | import Ubuntu.Connectivity 1.0 |
234 | 5 | 4 | ||
235 | 6 | Item { | 5 | Item { |
236 | @@ -23,15 +22,6 @@ | |||
237 | 23 | height: (postItemLoader.item) ? postItemLoader.item.height : 0 | 22 | height: (postItemLoader.item) ? postItemLoader.item.height : 0 |
238 | 24 | width: parent ? parent.width : 0 | 23 | width: parent ? parent.width : 0 |
239 | 25 | 24 | ||
240 | 26 | HapticsEffect { | ||
241 | 27 | id: pressEffect | ||
242 | 28 | attackIntensity: 0.0 | ||
243 | 29 | attackTime: 50 | ||
244 | 30 | intensity: 1.0 | ||
245 | 31 | duration: 10 | ||
246 | 32 | fadeTime: 50 | ||
247 | 33 | fadeIntensity: 0.0 | ||
248 | 34 | } | ||
249 | 35 | Connections { | 25 | Connections { |
250 | 36 | target: NetworkingStatus | 26 | target: NetworkingStatus |
251 | 37 | // full status can be retrieved from the base C++ class | 27 | // full status can be retrieved from the base C++ class |
252 | @@ -63,10 +53,10 @@ | |||
253 | 63 | signal upvoteClicked | 53 | signal upvoteClicked |
254 | 64 | signal downvoteClicked | 54 | signal downvoteClicked |
255 | 65 | signal commentsClicked | 55 | signal commentsClicked |
260 | 66 | onClicked: { pressEffect.start(); postitemroot.clicked(); } | 56 | onClicked: { Haptics.play(); postitemroot.clicked(); } |
261 | 67 | onUpvoteClicked: { pressEffect.start(); postitemroot.upvoteClicked(); } | 57 | onUpvoteClicked: { Haptics.play(); postitemroot.upvoteClicked(); } |
262 | 68 | onDownvoteClicked: { pressEffect.start(); postitemroot.downvoteClicked(); } | 58 | onDownvoteClicked: { Haptics.play(); postitemroot.downvoteClicked(); } |
263 | 69 | onCommentsClicked: { pressEffect.start(); postitemroot.commentsClicked(); } | 59 | onCommentsClicked: { Haptics.play(); postitemroot.commentsClicked(); } |
264 | 70 | 60 | ||
265 | 71 | source: { | 61 | source: { |
266 | 72 | //console.log('Link: '+url) | 62 | //console.log('Link: '+url) |
267 | 73 | 63 | ||
268 | === modified file 'components/PostMessageItem.qml' | |||
269 | --- components/PostMessageItem.qml 2015-04-23 10:16:22 +0000 | |||
270 | +++ components/PostMessageItem.qml 2015-07-25 07:54:46 +0000 | |||
271 | @@ -1,6 +1,5 @@ | |||
275 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
276 | 2 | import QtFeedback 5.0 | 2 | import Ubuntu.Components 1.2 |
274 | 3 | import Ubuntu.Components 1.1 | ||
277 | 4 | import "../utils/RedditLinker.js" as AutoLinkText | 3 | import "../utils/RedditLinker.js" as AutoLinkText |
278 | 5 | 4 | ||
279 | 6 | Rectangle { | 5 | Rectangle { |
280 | @@ -14,16 +13,6 @@ | |||
281 | 14 | color: uReadIt.currentTheme.commentBackgroundColorEven | 13 | color: uReadIt.currentTheme.commentBackgroundColorEven |
282 | 15 | anchors.leftMargin: units.gu(5) | 14 | anchors.leftMargin: units.gu(5) |
283 | 16 | 15 | ||
284 | 17 | HapticsEffect { | ||
285 | 18 | id: pressEffect | ||
286 | 19 | attackIntensity: 0.0 | ||
287 | 20 | attackTime: 50 | ||
288 | 21 | intensity: 1.0 | ||
289 | 22 | duration: 10 | ||
290 | 23 | fadeTime: 50 | ||
291 | 24 | fadeIntensity: 0.0 | ||
292 | 25 | } | ||
293 | 26 | |||
294 | 27 | Label { | 16 | Label { |
295 | 28 | id: name | 17 | id: name |
296 | 29 | anchors.left: parent.left | 18 | anchors.left: parent.left |
297 | @@ -51,7 +40,7 @@ | |||
298 | 51 | text: { | 40 | text: { |
299 | 52 | return AutoLinkText.Autolinker.link(postObj.data.selftext || postObj.data.body).replace(/\n/g, "<br>\n") | 41 | return AutoLinkText.Autolinker.link(postObj.data.selftext || postObj.data.body).replace(/\n/g, "<br>\n") |
300 | 53 | } | 42 | } |
302 | 54 | onLinkActivated: { pressEffect.start(); postMessageItem.linkActivated(link); } | 43 | onLinkActivated: { Haptics.play(); postMessageItem.linkActivated(link); } |
303 | 55 | 44 | ||
304 | 56 | } | 45 | } |
305 | 57 | 46 | ||
306 | 58 | 47 | ||
307 | === modified file 'components/ScrollToTop.qml' | |||
308 | --- components/ScrollToTop.qml 2015-04-07 02:00:13 +0000 | |||
309 | +++ components/ScrollToTop.qml 2015-07-25 07:54:46 +0000 | |||
310 | @@ -1,4 +1,4 @@ | |||
312 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
313 | 2 | 2 | ||
314 | 3 | MouseArea { | 3 | MouseArea { |
315 | 4 | anchors.fill: parent | 4 | anchors.fill: parent |
316 | 5 | 5 | ||
317 | === modified file 'components/SmallImagePostItem.qml' | |||
318 | --- components/SmallImagePostItem.qml 2015-07-24 20:07:32 +0000 | |||
319 | +++ components/SmallImagePostItem.qml 2015-07-25 07:54:46 +0000 | |||
320 | @@ -1,5 +1,5 @@ | |||
323 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
324 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.2 |
325 | 3 | 3 | ||
326 | 4 | Item { | 4 | Item { |
327 | 5 | id: postitemroot | 5 | id: postitemroot |
328 | 6 | 6 | ||
329 | === modified file 'components/StretchRow.qml' | |||
330 | --- components/StretchRow.qml 2014-11-07 17:00:05 +0000 | |||
331 | +++ components/StretchRow.qml 2015-07-25 07:54:46 +0000 | |||
332 | @@ -1,4 +1,4 @@ | |||
334 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
335 | 2 | 2 | ||
336 | 3 | Item { | 3 | Item { |
337 | 4 | 4 | ||
338 | 5 | 5 | ||
339 | === modified file 'components/UserMessageItem.qml' | |||
340 | --- components/UserMessageItem.qml 2015-07-24 20:07:32 +0000 | |||
341 | +++ components/UserMessageItem.qml 2015-07-25 07:54:46 +0000 | |||
342 | @@ -1,6 +1,5 @@ | |||
346 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
347 | 2 | import QtFeedback 5.0 | 2 | import Ubuntu.Components 1.2 |
345 | 3 | import Ubuntu.Components 1.1 | ||
348 | 4 | import "../utils/RedditLinker.js" as AutoLinkText | 3 | import "../utils/RedditLinker.js" as AutoLinkText |
349 | 5 | 4 | ||
350 | 6 | Rectangle { | 5 | Rectangle { |
351 | @@ -27,16 +26,6 @@ | |||
352 | 27 | signal replyClicked | 26 | signal replyClicked |
353 | 28 | signal readStatusClicked | 27 | signal readStatusClicked |
354 | 29 | 28 | ||
355 | 30 | HapticsEffect { | ||
356 | 31 | id: pressEffect | ||
357 | 32 | attackIntensity: 0.0 | ||
358 | 33 | attackTime: 50 | ||
359 | 34 | intensity: 1.0 | ||
360 | 35 | duration: 10 | ||
361 | 36 | fadeTime: 50 | ||
362 | 37 | fadeIntensity: 0.0 | ||
363 | 38 | } | ||
364 | 39 | |||
365 | 40 | Column { | 29 | Column { |
366 | 41 | id: messageContents | 30 | id: messageContents |
367 | 42 | 31 | ||
368 | @@ -60,7 +49,7 @@ | |||
369 | 60 | visible: messageObj ? (messageObj.kind === "t1" || messageObj.kind === "t3") : false | 49 | visible: messageObj ? (messageObj.kind === "t1" || messageObj.kind === "t3") : false |
370 | 61 | MouseArea { | 50 | MouseArea { |
371 | 62 | anchors.fill: parent | 51 | anchors.fill: parent |
373 | 63 | onClicked: { pressEffect.start(); userMessageItem.clicked(); } | 52 | onClicked: { Haptics.play(); userMessageItem.clicked(); } |
374 | 64 | } | 53 | } |
375 | 65 | } | 54 | } |
376 | 66 | 55 | ||
377 | @@ -85,7 +74,7 @@ | |||
378 | 85 | textFormat: Text.StyledText | 74 | textFormat: Text.StyledText |
379 | 86 | 75 | ||
380 | 87 | text: AutoLinkText.Autolinker.link(messageObj.data.body).replace(/\n/g, "<br>\n") | 76 | text: AutoLinkText.Autolinker.link(messageObj.data.body).replace(/\n/g, "<br>\n") |
382 | 88 | onLinkActivated: { pressEffect.start(); userMessageItem.linkActivated(link); } | 77 | onLinkActivated: { Haptics.play(); userMessageItem.linkActivated(link); } |
383 | 89 | 78 | ||
384 | 90 | } | 79 | } |
385 | 91 | 80 | ||
386 | @@ -106,7 +95,7 @@ | |||
387 | 106 | anchors.centerIn: parent | 95 | anchors.centerIn: parent |
388 | 107 | height: parent.height * 2 | 96 | height: parent.height * 2 |
389 | 108 | width: parent.width * 2 | 97 | width: parent.width * 2 |
391 | 109 | onClicked: { pressEffect.start(); readStatusClicked(); } | 98 | onClicked: { Haptics.play(); readStatusClicked(); } |
392 | 110 | } | 99 | } |
393 | 111 | } | 100 | } |
394 | 112 | Icon { | 101 | Icon { |
395 | @@ -121,7 +110,7 @@ | |||
396 | 121 | anchors.centerIn: parent | 110 | anchors.centerIn: parent |
397 | 122 | height: parent.height * 2 | 111 | height: parent.height * 2 |
398 | 123 | width: parent.width * 2 | 112 | width: parent.width * 2 |
400 | 124 | onClicked: { pressEffect.start(); upvoteClicked(); } | 113 | onClicked: { Haptics.play(); upvoteClicked(); } |
401 | 125 | } | 114 | } |
402 | 126 | } | 115 | } |
403 | 127 | Icon { | 116 | Icon { |
404 | @@ -136,7 +125,7 @@ | |||
405 | 136 | anchors.centerIn: parent | 125 | anchors.centerIn: parent |
406 | 137 | height: parent.height * 2 | 126 | height: parent.height * 2 |
407 | 138 | width: parent.width * 2 | 127 | width: parent.width * 2 |
409 | 139 | onClicked: { pressEffect.start(); downvoteClicked(); } | 128 | onClicked: { Haptics.play(); downvoteClicked(); } |
410 | 140 | } | 129 | } |
411 | 141 | } | 130 | } |
412 | 142 | Icon { | 131 | Icon { |
413 | @@ -152,7 +141,7 @@ | |||
414 | 152 | anchors.centerIn: parent | 141 | anchors.centerIn: parent |
415 | 153 | height: parent.height * 2 | 142 | height: parent.height * 2 |
416 | 154 | width: parent.width * 2 | 143 | width: parent.width * 2 |
418 | 155 | onClicked: { pressEffect.start(); replyClicked(); } | 144 | onClicked: { Haptics.play(); replyClicked(); } |
419 | 156 | } | 145 | } |
420 | 157 | } | 146 | } |
421 | 158 | } | 147 | } |
422 | 159 | 148 | ||
423 | === modified file 'manifest.json' | |||
424 | --- manifest.json 2015-07-24 19:50:59 +0000 | |||
425 | +++ manifest.json 2015-07-25 07:54:46 +0000 | |||
426 | @@ -1,7 +1,7 @@ | |||
427 | 1 | { | 1 | { |
428 | 2 | "architecture": "all", | 2 | "architecture": "all", |
429 | 3 | "description": "Reddit browser for Ubuntu", | 3 | "description": "Reddit browser for Ubuntu", |
431 | 4 | "framework": "ubuntu-sdk-14.10-qml", | 4 | "framework": "ubuntu-sdk-15.04-qml", |
432 | 5 | "hooks": { | 5 | "hooks": { |
433 | 6 | "ureadit": { | 6 | "ureadit": { |
434 | 7 | "apparmor": "ureadit.apparmor", | 7 | "apparmor": "ureadit.apparmor", |
435 | 8 | 8 | ||
436 | === modified file 'models/QReddit/ConnectionObject.qml' | |||
437 | --- models/QReddit/ConnectionObject.qml 2014-11-07 17:00:05 +0000 | |||
438 | +++ models/QReddit/ConnectionObject.qml 2015-07-25 07:54:46 +0000 | |||
439 | @@ -1,4 +1,4 @@ | |||
441 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
442 | 2 | 2 | ||
443 | 3 | QtObject { | 3 | QtObject { |
444 | 4 | id: connectionObject | 4 | id: connectionObject |
445 | 5 | 5 | ||
446 | === modified file 'models/QReddit/MoreCommentsListModel.qml' | |||
447 | --- models/QReddit/MoreCommentsListModel.qml 2014-12-28 02:16:01 +0000 | |||
448 | +++ models/QReddit/MoreCommentsListModel.qml 2015-07-25 07:54:46 +0000 | |||
449 | @@ -1,4 +1,4 @@ | |||
451 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
452 | 2 | import "QReddit.js" as QReddit | 2 | import "QReddit.js" as QReddit |
453 | 3 | 3 | ||
454 | 4 | ListModel { | 4 | ListModel { |
455 | 5 | 5 | ||
456 | === modified file 'models/QReddit/NotifierObject.qml' | |||
457 | --- models/QReddit/NotifierObject.qml 2015-01-13 03:02:31 +0000 | |||
458 | +++ models/QReddit/NotifierObject.qml 2015-07-25 07:54:46 +0000 | |||
459 | @@ -1,4 +1,4 @@ | |||
461 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
462 | 2 | 2 | ||
463 | 3 | QtObject { | 3 | QtObject { |
464 | 4 | 4 | ||
465 | 5 | 5 | ||
466 | === modified file 'models/QReddit/PostCommentsListModel.qml' | |||
467 | --- models/QReddit/PostCommentsListModel.qml 2015-04-29 00:16:36 +0000 | |||
468 | +++ models/QReddit/PostCommentsListModel.qml 2015-07-25 07:54:46 +0000 | |||
469 | @@ -1,4 +1,4 @@ | |||
471 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
472 | 2 | import "QReddit.js" as QReddit | 2 | import "QReddit.js" as QReddit |
473 | 3 | 3 | ||
474 | 4 | ListModel { | 4 | ListModel { |
475 | 5 | 5 | ||
476 | === modified file 'models/QReddit/QRHelper.js' | |||
477 | --- models/QReddit/QRHelper.js 2014-11-07 17:00:05 +0000 | |||
478 | +++ models/QReddit/QRHelper.js 2015-07-25 07:54:46 +0000 | |||
479 | @@ -2,7 +2,7 @@ | |||
480 | 2 | 2 | ||
481 | 3 | //TODO: change method of adding listElements from string manipulation to listModel function calls. | 3 | //TODO: change method of adding listElements from string manipulation to listModel function calls. |
482 | 4 | function arrayToListModel(array) { | 4 | function arrayToListModel(array) { |
484 | 5 | var listStr = "import QtQuick 2.0; ListModel { " | 5 | var listStr = "import QtQuick 2.4; ListModel { " |
485 | 6 | for (var i = 0; i < array.length; i++) { | 6 | for (var i = 0; i < array.length; i++) { |
486 | 7 | listStr += "ListElement { name: '" + array[i] + "' } "; | 7 | listStr += "ListElement { name: '" + array[i] + "' } "; |
487 | 8 | } | 8 | } |
488 | 9 | 9 | ||
489 | === modified file 'models/QReddit/QRObjects.js' | |||
490 | --- models/QReddit/QRObjects.js 2015-02-08 21:05:46 +0000 | |||
491 | +++ models/QReddit/QRObjects.js 2015-07-25 07:54:46 +0000 | |||
492 | @@ -110,7 +110,7 @@ | |||
493 | 110 | } | 110 | } |
494 | 111 | 111 | ||
495 | 112 | function createTimer(timeout) { | 112 | function createTimer(timeout) { |
497 | 113 | return Qt.createQmlObject('import QtQuick 2.0; Timer{ interval: ' + timeout + '; running: true; repeat: false}', Qt.application); | 113 | return Qt.createQmlObject('import QtQuick 2.4; Timer{ interval: ' + timeout + '; running: true; repeat: false}', Qt.application); |
498 | 114 | } | 114 | } |
499 | 115 | 115 | ||
500 | 116 | 116 | ||
501 | 117 | 117 | ||
502 | === modified file 'models/QReddit/SubredditListModel.qml' | |||
503 | --- models/QReddit/SubredditListModel.qml 2015-04-29 00:16:36 +0000 | |||
504 | +++ models/QReddit/SubredditListModel.qml 2015-07-25 07:54:46 +0000 | |||
505 | @@ -1,4 +1,4 @@ | |||
507 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
508 | 2 | import "QReddit.js" as QReddit | 2 | import "QReddit.js" as QReddit |
509 | 3 | 3 | ||
510 | 4 | ListModel { | 4 | ListModel { |
511 | 5 | 5 | ||
512 | === modified file 'models/QReddit/UserMessagesListModel.qml' | |||
513 | --- models/QReddit/UserMessagesListModel.qml 2015-01-13 03:02:31 +0000 | |||
514 | +++ models/QReddit/UserMessagesListModel.qml 2015-07-25 07:54:46 +0000 | |||
515 | @@ -1,4 +1,4 @@ | |||
517 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
518 | 2 | import "QReddit.js" as QReddit | 2 | import "QReddit.js" as QReddit |
519 | 3 | 3 | ||
520 | 4 | ListModel { | 4 | ListModel { |
521 | 5 | 5 | ||
522 | === modified file 'po/template.pot' | |||
523 | --- po/template.pot 2015-07-24 19:50:59 +0000 | |||
524 | +++ po/template.pot 2015-07-25 07:54:46 +0000 | |||
525 | @@ -8,7 +8,7 @@ | |||
526 | 8 | msgstr "" | 8 | msgstr "" |
527 | 9 | "Project-Id-Version: PACKAGE VERSION\n" | 9 | "Project-Id-Version: PACKAGE VERSION\n" |
528 | 10 | "Report-Msgid-Bugs-To: \n" | 10 | "Report-Msgid-Bugs-To: \n" |
530 | 11 | "POT-Creation-Date: 2015-07-07 23:12-0400\n" | 11 | "POT-Creation-Date: 2015-07-24 21:17+0000\n" |
531 | 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
532 | 13 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | 13 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
533 | 14 | "Language-Team: LANGUAGE <LL@li.org>\n" | 14 | "Language-Team: LANGUAGE <LL@li.org>\n" |
534 | @@ -29,51 +29,67 @@ | |||
535 | 29 | msgid "Share image" | 29 | msgid "Share image" |
536 | 30 | msgstr "" | 30 | msgstr "" |
537 | 31 | 31 | ||
539 | 32 | #: ui/SettingsPage.qml:8 ui/Frontpage.qml:210 | 32 | #: ui/AboutPage.qml:8 ui/Frontpage.qml:219 |
540 | 33 | msgid "About" | ||
541 | 34 | msgstr "" | ||
542 | 35 | |||
543 | 36 | #: ui/AboutPage.qml:30 | ||
544 | 37 | msgid "Name" | ||
545 | 38 | msgstr "" | ||
546 | 39 | |||
547 | 40 | #: ui/AboutPage.qml:34 | ||
548 | 41 | msgid "Author" | ||
549 | 42 | msgstr "" | ||
550 | 43 | |||
551 | 44 | #: ui/AboutPage.qml:38 | ||
552 | 45 | msgid "Version" | ||
553 | 46 | msgstr "" | ||
554 | 47 | |||
555 | 48 | #: ui/AboutPage.qml:42 | ||
556 | 49 | msgid "Released" | ||
557 | 50 | msgstr "" | ||
558 | 51 | |||
559 | 52 | #: ui/SettingsPage.qml:8 ui/Frontpage.qml:211 | ||
560 | 33 | msgid "Settings" | 53 | msgid "Settings" |
561 | 34 | msgstr "" | 54 | msgstr "" |
562 | 35 | 55 | ||
564 | 36 | #: ui/SettingsPage.qml:15 | 56 | #: ui/SettingsPage.qml:19 |
565 | 37 | msgid "Startup" | 57 | msgid "Startup" |
566 | 38 | msgstr "" | 58 | msgstr "" |
567 | 39 | 59 | ||
569 | 40 | #: ui/SettingsPage.qml:18 | 60 | #: ui/SettingsPage.qml:22 |
570 | 41 | msgid "Login automatically at startup" | 61 | msgid "Login automatically at startup" |
571 | 42 | msgstr "" | 62 | msgstr "" |
572 | 43 | 63 | ||
574 | 44 | #: ui/SettingsPage.qml:29 | 64 | #: ui/SettingsPage.qml:33 |
575 | 45 | msgid "Internal Browser" | 65 | msgid "Internal Browser" |
576 | 46 | msgstr "" | 66 | msgstr "" |
577 | 47 | 67 | ||
579 | 48 | #: ui/SettingsPage.qml:33 | 68 | #: ui/SettingsPage.qml:37 |
580 | 49 | msgid "Open links internally" | 69 | msgid "Open links internally" |
581 | 50 | msgstr "" | 70 | msgstr "" |
582 | 51 | 71 | ||
584 | 52 | #: ui/SettingsPage.qml:44 | 72 | #: ui/SettingsPage.qml:48 |
585 | 53 | msgid "Image Previews" | 73 | msgid "Image Previews" |
586 | 54 | msgstr "" | 74 | msgstr "" |
587 | 55 | 75 | ||
589 | 56 | #: ui/SettingsPage.qml:52 | 76 | #: ui/SettingsPage.qml:56 |
590 | 57 | msgid "Don't show images" | 77 | msgid "Don't show images" |
591 | 58 | msgstr "" | 78 | msgstr "" |
592 | 59 | 79 | ||
594 | 60 | #: ui/SettingsPage.qml:52 | 80 | #: ui/SettingsPage.qml:56 |
595 | 61 | msgid "Show large previews" | 81 | msgid "Show large previews" |
596 | 62 | msgstr "" | 82 | msgstr "" |
597 | 63 | 83 | ||
599 | 64 | #: ui/SettingsPage.qml:52 | 84 | #: ui/SettingsPage.qml:56 |
600 | 65 | msgid "Show thumbnail previews" | 85 | msgid "Show thumbnail previews" |
601 | 66 | msgstr "" | 86 | msgstr "" |
602 | 67 | 87 | ||
604 | 68 | #: ui/SettingsPage.qml:60 | 88 | #: ui/SettingsPage.qml:64 |
605 | 69 | msgid "Theme" | 89 | msgid "Theme" |
606 | 70 | msgstr "" | 90 | msgstr "" |
607 | 71 | 91 | ||
613 | 72 | #: ui/ArticlePage.qml:99 | 92 | #: ui/Frontpage.qml:18 ui/Frontpage.qml:267 ui/Frontpage.qml:471 |
609 | 73 | msgid "Share image link" | ||
610 | 74 | msgstr "" | ||
611 | 75 | |||
612 | 76 | #: ui/Frontpage.qml:18 ui/Frontpage.qml:266 ui/Frontpage.qml:470 | ||
614 | 77 | msgid "Frontpage" | 93 | msgid "Frontpage" |
615 | 78 | msgstr "" | 94 | msgstr "" |
616 | 79 | 95 | ||
617 | @@ -97,74 +113,99 @@ | |||
618 | 97 | msgid "Rising" | 113 | msgid "Rising" |
619 | 98 | msgstr "" | 114 | msgstr "" |
620 | 99 | 115 | ||
622 | 100 | #: ui/Frontpage.qml:86 | 116 | #: ui/Frontpage.qml:87 |
623 | 101 | msgid "Subscriptions" | 117 | msgid "Subscriptions" |
624 | 102 | msgstr "" | 118 | msgstr "" |
625 | 103 | 119 | ||
627 | 104 | #: ui/Frontpage.qml:86 | 120 | #: ui/Frontpage.qml:87 |
628 | 105 | msgid "Defaults" | 121 | msgid "Defaults" |
629 | 106 | msgstr "" | 122 | msgstr "" |
630 | 107 | 123 | ||
632 | 108 | #: ui/Frontpage.qml:86 | 124 | #: ui/Frontpage.qml:87 |
633 | 109 | msgid "Search" | 125 | msgid "Search" |
634 | 110 | msgstr "" | 126 | msgstr "" |
635 | 111 | 127 | ||
637 | 112 | #: ui/Frontpage.qml:165 | 128 | #: ui/Frontpage.qml:166 |
638 | 113 | msgid "Subreddit" | 129 | msgid "Subreddit" |
639 | 114 | msgstr "" | 130 | msgstr "" |
640 | 115 | 131 | ||
642 | 116 | #: ui/Frontpage.qml:174 | 132 | #: ui/Frontpage.qml:175 |
643 | 117 | msgid "Login" | 133 | msgid "Login" |
644 | 118 | msgstr "" | 134 | msgstr "" |
645 | 119 | 135 | ||
647 | 120 | #: ui/Frontpage.qml:183 | 136 | #: ui/Frontpage.qml:184 |
648 | 121 | msgid "Inbox" | 137 | msgid "Inbox" |
649 | 122 | msgstr "" | 138 | msgstr "" |
650 | 123 | 139 | ||
652 | 124 | #: ui/Frontpage.qml:192 | 140 | #: ui/Frontpage.qml:193 |
653 | 125 | msgid "New Unread" | 141 | msgid "New Unread" |
654 | 126 | msgstr "" | 142 | msgstr "" |
655 | 127 | 143 | ||
657 | 128 | #: ui/Frontpage.qml:201 | 144 | #: ui/Frontpage.qml:202 |
658 | 129 | msgid "Users" | 145 | msgid "Users" |
659 | 130 | msgstr "" | 146 | msgstr "" |
660 | 131 | 147 | ||
666 | 132 | #: ui/Frontpage.qml:218 ui/AboutPage.qml:8 | 148 | #: ui/Frontpage.qml:227 |
662 | 133 | msgid "About" | ||
663 | 134 | msgstr "" | ||
664 | 135 | |||
665 | 136 | #: ui/Frontpage.qml:226 | ||
667 | 137 | msgid "Logout" | 149 | msgid "Logout" |
668 | 138 | msgstr "" | 150 | msgstr "" |
669 | 139 | 151 | ||
671 | 140 | #: ui/Frontpage.qml:245 | 152 | #: ui/Frontpage.qml:246 |
672 | 141 | msgid "Back" | 153 | msgid "Back" |
673 | 142 | msgstr "" | 154 | msgstr "" |
674 | 143 | 155 | ||
676 | 144 | #: ui/Frontpage.qml:255 | 156 | #: ui/Frontpage.qml:256 |
677 | 145 | msgid "Confirm" | 157 | msgid "Confirm" |
678 | 146 | msgstr "" | 158 | msgstr "" |
679 | 147 | 159 | ||
681 | 148 | #: ui/Frontpage.qml:472 | 160 | #: ui/Frontpage.qml:473 |
682 | 149 | msgid "All" | 161 | msgid "All" |
683 | 150 | msgstr "" | 162 | msgstr "" |
684 | 151 | 163 | ||
702 | 152 | #: ui/AboutPage.qml:26 | 164 | #: ui/ArticlePage.qml:99 |
703 | 153 | msgid "Name" | 165 | msgid "Share image link" |
704 | 154 | msgstr "" | 166 | msgstr "" |
705 | 155 | 167 | ||
706 | 156 | #: ui/AboutPage.qml:30 | 168 | #: ui/UserAccountsPage.qml:11 |
707 | 157 | msgid "Author" | 169 | msgid "User Accounts" |
708 | 158 | msgstr "" | 170 | msgstr "" |
709 | 159 | 171 | ||
710 | 160 | #: ui/AboutPage.qml:34 | 172 | #: ui/UserAccountsPage.qml:16 |
711 | 161 | msgid "Version" | 173 | msgid "Add Account" |
712 | 162 | msgstr "" | 174 | msgstr "" |
713 | 163 | 175 | ||
714 | 164 | #: ui/AboutPage.qml:38 | 176 | #: ui/UserAccountsPage.qml:149 |
715 | 165 | msgid "Released" | 177 | msgid "No users found" |
716 | 166 | msgstr "" | 178 | msgstr "" |
717 | 167 | 179 | ||
718 | 168 | #: Main.qml:137 | 180 | #: ui/UserAccountsPage.qml:150 |
719 | 181 | msgid "Press the add user header button to add a new user" | ||
720 | 182 | msgstr "" | ||
721 | 183 | |||
722 | 184 | #: ui/UserAccountsPage.qml:160 | ||
723 | 185 | #, qt-format | ||
724 | 186 | msgid "Change Password for: %1" | ||
725 | 187 | msgstr "" | ||
726 | 188 | |||
727 | 189 | #: ui/UserAccountsPage.qml:164 ui/UserAccountsPage.qml:204 | ||
728 | 190 | msgid "Password" | ||
729 | 191 | msgstr "" | ||
730 | 192 | |||
731 | 193 | #: ui/UserAccountsPage.qml:172 ui/UserAccountsPage.qml:212 | ||
732 | 194 | msgid "Save" | ||
733 | 195 | msgstr "" | ||
734 | 196 | |||
735 | 197 | #: ui/UserAccountsPage.qml:181 ui/UserAccountsPage.qml:222 | ||
736 | 198 | msgid "Cancel" | ||
737 | 199 | msgstr "" | ||
738 | 200 | |||
739 | 201 | #: ui/UserAccountsPage.qml:193 | ||
740 | 202 | msgid "Add User Account" | ||
741 | 203 | msgstr "" | ||
742 | 204 | |||
743 | 205 | #: ui/UserAccountsPage.qml:197 | ||
744 | 206 | msgid "Username" | ||
745 | 207 | msgstr "" | ||
746 | 208 | |||
747 | 209 | #: Main.qml:134 | ||
748 | 169 | msgid "Link to a Reddit thread" | 210 | msgid "Link to a Reddit thread" |
749 | 170 | msgstr "" | 211 | msgstr "" |
750 | 171 | 212 | ||
751 | === modified file 'themes/Ambiance.qml' | |||
752 | --- themes/Ambiance.qml 2015-04-23 10:16:22 +0000 | |||
753 | +++ themes/Ambiance.qml 2015-07-25 07:54:46 +0000 | |||
754 | @@ -1,5 +1,5 @@ | |||
757 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
758 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.2 |
759 | 3 | import Ubuntu.Components.Themes.Ambiance 0.1 | 3 | import Ubuntu.Components.Themes.Ambiance 0.1 |
760 | 4 | 4 | ||
761 | 5 | QtObject { | 5 | QtObject { |
762 | 6 | 6 | ||
763 | === modified file 'themes/RedditDark.qml' | |||
764 | --- themes/RedditDark.qml 2015-03-17 00:48:30 +0000 | |||
765 | +++ themes/RedditDark.qml 2015-07-25 07:54:46 +0000 | |||
766 | @@ -1,5 +1,5 @@ | |||
769 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
770 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.2 |
771 | 3 | 3 | ||
772 | 4 | QtObject { | 4 | QtObject { |
773 | 5 | // MainView | 5 | // MainView |
774 | 6 | 6 | ||
775 | === modified file 'themes/RedditLight.qml' | |||
776 | --- themes/RedditLight.qml 2015-03-17 00:48:30 +0000 | |||
777 | +++ themes/RedditLight.qml 2015-07-25 07:54:46 +0000 | |||
778 | @@ -1,5 +1,5 @@ | |||
781 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
782 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.2 |
783 | 3 | import Ubuntu.Components.Themes.Ambiance 0.1 | 3 | import Ubuntu.Components.Themes.Ambiance 0.1 |
784 | 4 | 4 | ||
785 | 5 | QtObject { | 5 | QtObject { |
786 | 6 | 6 | ||
787 | === modified file 'themes/ThemeManager.qml' | |||
788 | --- themes/ThemeManager.qml 2015-03-17 00:48:30 +0000 | |||
789 | +++ themes/ThemeManager.qml 2015-07-25 07:54:46 +0000 | |||
790 | @@ -1,5 +1,5 @@ | |||
793 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
794 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.2 |
795 | 3 | 3 | ||
796 | 4 | QtObject { | 4 | QtObject { |
797 | 5 | id: themeManager | 5 | id: themeManager |
798 | 6 | 6 | ||
799 | === modified file 'ui/AboutPage.qml' | |||
800 | --- ui/AboutPage.qml 2015-07-22 19:56:20 +0000 | |||
801 | +++ ui/AboutPage.qml 2015-07-25 07:54:46 +0000 | |||
802 | @@ -1,5 +1,5 @@ | |||
805 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
806 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.2 |
807 | 3 | import Ubuntu.Components.ListItems 1.0 as ListItems | 3 | import Ubuntu.Components.ListItems 1.0 as ListItems |
808 | 4 | import "../manifest.js" as Manifest | 4 | import "../manifest.js" as Manifest |
809 | 5 | 5 | ||
810 | 6 | 6 | ||
811 | === modified file 'ui/ArticlePage.qml' | |||
812 | --- ui/ArticlePage.qml 2015-07-06 18:22:36 +0000 | |||
813 | +++ ui/ArticlePage.qml 2015-07-25 07:54:46 +0000 | |||
814 | @@ -1,5 +1,5 @@ | |||
817 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
818 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.2 |
819 | 3 | import Ubuntu.Components.ListItems 1.0 | 3 | import Ubuntu.Components.ListItems 1.0 |
820 | 4 | import Ubuntu.Web 0.2 | 4 | import Ubuntu.Web 0.2 |
821 | 5 | import Ubuntu.Content 0.1 | 5 | import Ubuntu.Content 0.1 |
822 | 6 | 6 | ||
823 | === modified file 'ui/CommentsPage.qml' | |||
824 | --- ui/CommentsPage.qml 2015-06-05 02:02:46 +0000 | |||
825 | +++ ui/CommentsPage.qml 2015-07-25 07:54:46 +0000 | |||
826 | @@ -1,5 +1,5 @@ | |||
829 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
830 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.2 |
831 | 3 | import Ubuntu.Components.ListItems 1.0 | 3 | import Ubuntu.Components.ListItems 1.0 |
832 | 4 | import "../models/QReddit" | 4 | import "../models/QReddit" |
833 | 5 | import "../components" | 5 | import "../components" |
834 | 6 | 6 | ||
835 | === modified file 'ui/Frontpage.qml' | |||
836 | --- ui/Frontpage.qml 2015-07-22 19:49:53 +0000 | |||
837 | +++ ui/Frontpage.qml 2015-07-25 07:54:46 +0000 | |||
838 | @@ -1,5 +1,5 @@ | |||
841 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
842 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.2 |
843 | 3 | import Ubuntu.Components.ListItems 1.0 as ListItems | 3 | import Ubuntu.Components.ListItems 1.0 as ListItems |
844 | 4 | import "../components" | 4 | import "../components" |
845 | 5 | import "../models/QReddit" | 5 | import "../models/QReddit" |
846 | @@ -400,7 +400,7 @@ | |||
847 | 400 | if(pf.atYEnd && !pf.atYBeginning && (pf.contentHeight >= parent.height)) { | 400 | if(pf.atYEnd && !pf.atYBeginning && (pf.contentHeight >= parent.height)) { |
848 | 401 | moreLoaderItem.overflow = pf.contentY - pf.contentHeight + pf.height | 401 | moreLoaderItem.overflow = pf.contentY - pf.contentHeight + pf.height |
849 | 402 | if ((moreLoaderItem.overflow > moreLoaderItem.loadMoreLength) && !moreLoaderItem.spaceRect) { | 402 | if ((moreLoaderItem.overflow > moreLoaderItem.loadMoreLength) && !moreLoaderItem.spaceRect) { |
851 | 403 | moreLoaderItem.spaceRect = Qt.createQmlObject("import QtQuick 2.0; Item{width: 1; height: " + moreLoaderItem.loadMoreLength + "}", frontpage) | 403 | moreLoaderItem.spaceRect = Qt.createQmlObject("import QtQuick 2.4; Item{width: 1; height: " + moreLoaderItem.loadMoreLength + "}", frontpage) |
852 | 404 | postsModel.loadMore() | 404 | postsModel.loadMore() |
853 | 405 | } | 405 | } |
854 | 406 | 406 | ||
855 | 407 | 407 | ||
856 | === modified file 'ui/InternalBrowserPage.qml' | |||
857 | --- ui/InternalBrowserPage.qml 2015-02-08 21:05:46 +0000 | |||
858 | +++ ui/InternalBrowserPage.qml 2015-07-25 07:54:46 +0000 | |||
859 | @@ -1,5 +1,5 @@ | |||
862 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
863 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.2 |
864 | 3 | import Ubuntu.Components.ListItems 1.0 | 3 | import Ubuntu.Components.ListItems 1.0 |
865 | 4 | import Ubuntu.Web 0.2 | 4 | import Ubuntu.Web 0.2 |
866 | 5 | import Ubuntu.Content 0.1 | 5 | import Ubuntu.Content 0.1 |
867 | 6 | 6 | ||
868 | === modified file 'ui/MoreCommentsPage.qml' | |||
869 | --- ui/MoreCommentsPage.qml 2015-04-23 10:16:22 +0000 | |||
870 | +++ ui/MoreCommentsPage.qml 2015-07-25 07:54:46 +0000 | |||
871 | @@ -1,5 +1,5 @@ | |||
874 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
875 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.2 |
876 | 3 | import Ubuntu.Components.ListItems 1.0 | 3 | import Ubuntu.Components.ListItems 1.0 |
877 | 4 | import "../models/QReddit" | 4 | import "../models/QReddit" |
878 | 5 | import "../components" | 5 | import "../components" |
879 | 6 | 6 | ||
880 | === modified file 'ui/PostMessagePage.qml' | |||
881 | --- ui/PostMessagePage.qml 2015-06-05 02:02:46 +0000 | |||
882 | +++ ui/PostMessagePage.qml 2015-07-25 07:54:46 +0000 | |||
883 | @@ -1,5 +1,5 @@ | |||
886 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
887 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.2 |
888 | 3 | import Ubuntu.Components.ListItems 1.0 | 3 | import Ubuntu.Components.ListItems 1.0 |
889 | 4 | import "../components" | 4 | import "../components" |
890 | 5 | import "../models/QReddit/QReddit.js" as QReddit | 5 | import "../models/QReddit/QReddit.js" as QReddit |
891 | 6 | 6 | ||
892 | === modified file 'ui/SettingsPage.qml' | |||
893 | --- ui/SettingsPage.qml 2015-07-22 19:56:20 +0000 | |||
894 | +++ ui/SettingsPage.qml 2015-07-25 07:54:46 +0000 | |||
895 | @@ -1,5 +1,5 @@ | |||
898 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
899 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.2 |
900 | 3 | import Ubuntu.Components.ListItems 1.0 as ListItems | 3 | import Ubuntu.Components.ListItems 1.0 as ListItems |
901 | 4 | import Ubuntu.Components.Popups 1.0 | 4 | import Ubuntu.Components.Popups 1.0 |
902 | 5 | 5 | ||
903 | 6 | 6 | ||
904 | === modified file 'ui/ShareImagePage.qml' | |||
905 | --- ui/ShareImagePage.qml 2015-04-23 10:16:22 +0000 | |||
906 | +++ ui/ShareImagePage.qml 2015-07-25 07:54:46 +0000 | |||
907 | @@ -1,5 +1,5 @@ | |||
910 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
911 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.2 |
912 | 3 | import Ubuntu.Components.ListItems 1.0 as ListItems | 3 | import Ubuntu.Components.ListItems 1.0 as ListItems |
913 | 4 | import Ubuntu.Content 0.1 | 4 | import Ubuntu.Content 0.1 |
914 | 5 | 5 | ||
915 | 6 | 6 | ||
916 | === modified file 'ui/ShareLinkPage.qml' | |||
917 | --- ui/ShareLinkPage.qml 2015-04-23 10:16:22 +0000 | |||
918 | +++ ui/ShareLinkPage.qml 2015-07-25 07:54:46 +0000 | |||
919 | @@ -1,5 +1,5 @@ | |||
922 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
923 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.2 |
924 | 3 | import Ubuntu.Components.ListItems 1.0 as ListItems | 3 | import Ubuntu.Components.ListItems 1.0 as ListItems |
925 | 4 | import Ubuntu.Components.Popups 1.0 as Popups | 4 | import Ubuntu.Components.Popups 1.0 as Popups |
926 | 5 | import Ubuntu.Content 0.1 | 5 | import Ubuntu.Content 0.1 |
927 | 6 | 6 | ||
928 | === modified file 'ui/SubredditPage.qml' | |||
929 | --- ui/SubredditPage.qml 2015-07-22 19:49:53 +0000 | |||
930 | +++ ui/SubredditPage.qml 2015-07-25 07:54:46 +0000 | |||
931 | @@ -1,5 +1,5 @@ | |||
934 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
935 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.2 |
936 | 3 | import Ubuntu.Components.ListItems 1.0 as ListItems | 3 | import Ubuntu.Components.ListItems 1.0 as ListItems |
937 | 4 | import "../components" | 4 | import "../components" |
938 | 5 | import "../models/QReddit" | 5 | import "../models/QReddit" |
939 | @@ -140,7 +140,7 @@ | |||
940 | 140 | if(pf.atYEnd && !pf.atYBeginning && (pf.contentHeight >= parent.height)) { | 140 | if(pf.atYEnd && !pf.atYBeginning && (pf.contentHeight >= parent.height)) { |
941 | 141 | moreLoaderItem.overflow = pf.contentY - pf.contentHeight + pf.height | 141 | moreLoaderItem.overflow = pf.contentY - pf.contentHeight + pf.height |
942 | 142 | if ((moreLoaderItem.overflow > moreLoaderItem.loadMoreLength) && !moreLoaderItem.spaceRect) { | 142 | if ((moreLoaderItem.overflow > moreLoaderItem.loadMoreLength) && !moreLoaderItem.spaceRect) { |
944 | 143 | moreLoaderItem.spaceRect = Qt.createQmlObject("import QtQuick 2.0; Item{width: 1; height: " + moreLoaderItem.loadMoreLength + "}", subredditpage) | 143 | moreLoaderItem.spaceRect = Qt.createQmlObject("import QtQuick 2.4; Item{width: 1; height: " + moreLoaderItem.loadMoreLength + "}", subredditpage) |
945 | 144 | postsModel.loadMore() | 144 | postsModel.loadMore() |
946 | 145 | } | 145 | } |
947 | 146 | 146 | ||
948 | 147 | 147 | ||
949 | === modified file 'ui/SubredditSwitcherPage.qml' | |||
950 | --- ui/SubredditSwitcherPage.qml 2015-04-07 02:00:13 +0000 | |||
951 | +++ ui/SubredditSwitcherPage.qml 2015-07-25 07:54:46 +0000 | |||
952 | @@ -1,5 +1,5 @@ | |||
955 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
956 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.2 |
957 | 3 | import Ubuntu.Components.ListItems 1.0 as ListItems | 3 | import Ubuntu.Components.ListItems 1.0 as ListItems |
958 | 4 | import "../components" | 4 | import "../components" |
959 | 5 | import "../models/QReddit" | 5 | import "../models/QReddit" |
960 | 6 | 6 | ||
961 | === modified file 'ui/UserAccountsPage.qml' | |||
962 | --- ui/UserAccountsPage.qml 2015-01-05 02:58:08 +0000 | |||
963 | +++ ui/UserAccountsPage.qml 2015-07-25 07:54:46 +0000 | |||
964 | @@ -1,43 +1,107 @@ | |||
968 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
969 | 2 | import Ubuntu.Components 1.1 | 2 | import QtQuick.Layouts 1.1 |
970 | 3 | import Ubuntu.Components.ListItems 1.0 as ListItems | 3 | import Ubuntu.Components 1.2 |
971 | 4 | import Ubuntu.Components.ListItems 1.1 as ListItems | ||
972 | 4 | import Ubuntu.Components.Popups 1.0 | 5 | import Ubuntu.Components.Popups 1.0 |
973 | 6 | import "../components" | ||
974 | 5 | 7 | ||
975 | 6 | Page { | 8 | Page { |
976 | 7 | id: accountsPage | 9 | id: accountsPage |
978 | 8 | title: "User Accounts" | 10 | |
979 | 11 | title: i18n.tr("User Accounts") | ||
980 | 9 | 12 | ||
981 | 10 | head.actions: [ | 13 | head.actions: [ |
982 | 11 | Action { | 14 | Action { |
983 | 12 | id: addAccountAction | 15 | id: addAccountAction |
985 | 13 | text: "Add Account" | 16 | text: i18n.tr("Add Account") |
986 | 14 | iconName: 'new-contact' | 17 | iconName: 'new-contact' |
987 | 15 | onTriggered: { | 18 | onTriggered: { |
988 | 16 | PopupUtils.open(addAccountComponent) | 19 | PopupUtils.open(addAccountComponent) |
989 | 17 | } | 20 | } |
990 | 18 | } | 21 | } |
991 | 19 | |||
992 | 20 | ] | 22 | ] |
993 | 23 | |||
994 | 24 | ListModel { | ||
995 | 25 | id: usersModel | ||
996 | 26 | } | ||
997 | 27 | |||
998 | 28 | Component.onCompleted: { | ||
999 | 29 | loadUsersModel() | ||
1000 | 30 | } | ||
1001 | 31 | |||
1002 | 32 | /* | ||
1003 | 33 | Function to convert the users variable returned by uReadIt.qreddit.getUsers() into a listmodel | ||
1004 | 34 | so that the listview can automatically update when model changes are made. | ||
1005 | 35 | */ | ||
1006 | 36 | function loadUsersModel() { | ||
1007 | 37 | usersModel.clear() | ||
1008 | 38 | var users = uReadIt.qreddit.getUsers() | ||
1009 | 39 | for (var i=0; i<users.length; i++) { | ||
1010 | 40 | usersModel.append({"name" : users[i]}) | ||
1011 | 41 | } | ||
1012 | 42 | } | ||
1013 | 43 | |||
1014 | 21 | ListView { | 44 | ListView { |
1015 | 22 | id: accountsList | 45 | id: accountsList |
1016 | 46 | |||
1017 | 23 | anchors.fill: parent | 47 | anchors.fill: parent |
1035 | 24 | 48 | model: usersModel | |
1036 | 25 | model: uReadIt.qreddit.getUsers() | 49 | |
1037 | 26 | 50 | delegate: ListItem { | |
1038 | 27 | delegate: ListItems.Standard { | 51 | id: listitem |
1039 | 28 | text: modelData || "Anonymous" | 52 | |
1040 | 29 | progression: true | 53 | divider.visible: false |
1041 | 30 | removable: (modelData) ? true : false | 54 | |
1042 | 31 | confirmRemoval: true | 55 | ListItems.ThinDivider { anchors.bottom: parent.bottom } |
1043 | 32 | iconName: 'contact' | 56 | |
1044 | 33 | iconSource: { | 57 | RowLayout { |
1045 | 34 | if (!modelData) { | 58 | spacing: units.gu(2) |
1046 | 35 | return "" | 59 | anchors.left: parent.left |
1047 | 36 | } else if (uReadIt.qreddit.notifier.isLoggedIn && modelData == uReadIt.qreddit.notifier.activeUser) { | 60 | anchors.right: parent.right |
1048 | 37 | return Qt.resolvedUrl('../images/contact-active.svg') | 61 | anchors.margins: units.gu(2) |
1049 | 38 | } else { | 62 | height: parent.height |
1050 | 39 | return Qt.resolvedUrl('../images/contact.svg') | 63 | |
1051 | 40 | } | 64 | Icon { |
1052 | 65 | anchors.verticalCenter: parent.verticalCenter | ||
1053 | 66 | width: units.gu(3) | ||
1054 | 67 | height: width | ||
1055 | 68 | name: 'contact' | ||
1056 | 69 | source: { | ||
1057 | 70 | if (!modelData) { | ||
1058 | 71 | return "" | ||
1059 | 72 | } else if (uReadIt.qreddit.notifier.isLoggedIn && modelData == uReadIt.qreddit.notifier.activeUser) { | ||
1060 | 73 | return Qt.resolvedUrl('../images/contact-active.svg') | ||
1061 | 74 | } else { | ||
1062 | 75 | return Qt.resolvedUrl('../images/contact.svg') | ||
1063 | 76 | } | ||
1064 | 77 | } | ||
1065 | 78 | } | ||
1066 | 79 | |||
1067 | 80 | Label { | ||
1068 | 81 | text: modelData || "Anonymous" | ||
1069 | 82 | Layout.fillWidth: true | ||
1070 | 83 | anchors.verticalCenter: parent.verticalCenter | ||
1071 | 84 | } | ||
1072 | 85 | |||
1073 | 86 | Icon { | ||
1074 | 87 | name: 'go-next' | ||
1075 | 88 | width: units.gu(2) | ||
1076 | 89 | height: width | ||
1077 | 90 | anchors.verticalCenter: parent.verticalCenter | ||
1078 | 91 | } | ||
1079 | 92 | } | ||
1080 | 93 | |||
1081 | 94 | leadingActions: ListItemActions { | ||
1082 | 95 | actions: [ | ||
1083 | 96 | Action { | ||
1084 | 97 | enabled: modelData ? true : false | ||
1085 | 98 | iconName: 'delete' | ||
1086 | 99 | onTriggered: { | ||
1087 | 100 | uReadIt.qreddit.deleteUser(modelData) | ||
1088 | 101 | usersModel.remove(index, 1) | ||
1089 | 102 | } | ||
1090 | 103 | } | ||
1091 | 104 | ] | ||
1092 | 41 | } | 105 | } |
1093 | 42 | 106 | ||
1094 | 43 | onClicked: { | 107 | onClicked: { |
1095 | @@ -65,10 +129,25 @@ | |||
1096 | 65 | PopupUtils.open(editAccountComponent, null, {'username':modelData, 'text':response}) | 129 | PopupUtils.open(editAccountComponent, null, {'username':modelData, 'text':response}) |
1097 | 66 | }) | 130 | }) |
1098 | 67 | } | 131 | } |
1103 | 68 | 132 | } | |
1104 | 69 | onItemRemoved: { | 133 | } |
1105 | 70 | uReadIt.qreddit.deleteUser(modelData) | 134 | |
1106 | 71 | } | 135 | Loader { |
1107 | 136 | id: emptyState | ||
1108 | 137 | anchors.left: parent.left | ||
1109 | 138 | anchors.right: parent.right | ||
1110 | 139 | anchors.verticalCenter: parent.verticalCenter | ||
1111 | 140 | sourceComponent: usersModel.count === 0 ? emptyStateComponent : undefined | ||
1112 | 141 | } | ||
1113 | 142 | |||
1114 | 143 | Component { | ||
1115 | 144 | id: emptyStateComponent | ||
1116 | 145 | EmptyState { | ||
1117 | 146 | iconHeight: units.gu(12) | ||
1118 | 147 | iconWidth: units.gu(12) | ||
1119 | 148 | iconSource: Qt.resolvedUrl("../images/contact-active.svg") | ||
1120 | 149 | title: i18n.tr("No users found") | ||
1121 | 150 | subTitle: i18n.tr("Press the add user header button to add a new user") | ||
1122 | 72 | } | 151 | } |
1123 | 73 | } | 152 | } |
1124 | 74 | 153 | ||
1125 | @@ -78,11 +157,11 @@ | |||
1126 | 78 | Dialog { | 157 | Dialog { |
1127 | 79 | id: editAccountDialog | 158 | id: editAccountDialog |
1128 | 80 | property string username: "" | 159 | property string username: "" |
1130 | 81 | title: "Change Password for: "+username | 160 | title: i18n.tr("Change Password for: %1").arg(username) |
1131 | 82 | 161 | ||
1132 | 83 | TextField { | 162 | TextField { |
1133 | 84 | id: editPasswordField | 163 | id: editPasswordField |
1135 | 85 | placeholderText: "Password" | 164 | placeholderText: i18n.tr("Password") |
1136 | 86 | width: parent.width | 165 | width: parent.width |
1137 | 87 | text: "" | 166 | text: "" |
1138 | 88 | echoMode: TextInput.PasswordEchoOnEdit | 167 | echoMode: TextInput.PasswordEchoOnEdit |
1139 | @@ -90,7 +169,7 @@ | |||
1140 | 90 | } | 169 | } |
1141 | 91 | Button { | 170 | Button { |
1142 | 92 | id: editConfirmButton | 171 | id: editConfirmButton |
1144 | 93 | text: "Save" | 172 | text: i18n.tr("Save") |
1145 | 94 | gradient: UbuntuColors.orangeGradient | 173 | gradient: UbuntuColors.orangeGradient |
1146 | 95 | onClicked: { | 174 | onClicked: { |
1147 | 96 | uReadIt.qreddit._addUser(username, editPasswordField.text) | 175 | uReadIt.qreddit._addUser(username, editPasswordField.text) |
1148 | @@ -99,7 +178,7 @@ | |||
1149 | 99 | } | 178 | } |
1150 | 100 | Button { | 179 | Button { |
1151 | 101 | id: addCancelButton | 180 | id: addCancelButton |
1153 | 102 | text: "Cancel" | 181 | text: i18n.tr("Cancel") |
1154 | 103 | onClicked: { | 182 | onClicked: { |
1155 | 104 | PopupUtils.close(editAccountDialog) | 183 | PopupUtils.close(editAccountDialog) |
1156 | 105 | } | 184 | } |
1157 | @@ -111,18 +190,18 @@ | |||
1158 | 111 | 190 | ||
1159 | 112 | Dialog { | 191 | Dialog { |
1160 | 113 | id: addAccountDialog | 192 | id: addAccountDialog |
1162 | 114 | title: "Add User Account" | 193 | title: i18n.tr("Add User Account") |
1163 | 115 | 194 | ||
1164 | 116 | TextField { | 195 | TextField { |
1165 | 117 | id: addUsernameField | 196 | id: addUsernameField |
1167 | 118 | placeholderText: "Username" | 197 | placeholderText: i18n.tr("Username") |
1168 | 119 | width: parent.width | 198 | width: parent.width |
1169 | 120 | //text: "" | 199 | //text: "" |
1170 | 121 | //inputMethodHints: Qt.ImhNoPredictiveText | Qt.ImhNoAutoUppercase | 200 | //inputMethodHints: Qt.ImhNoPredictiveText | Qt.ImhNoAutoUppercase |
1171 | 122 | } | 201 | } |
1172 | 123 | TextField { | 202 | TextField { |
1173 | 124 | id: addPasswordField | 203 | id: addPasswordField |
1175 | 125 | placeholderText: "Password" | 204 | placeholderText: i18n.tr("Password") |
1176 | 126 | width: parent.width | 205 | width: parent.width |
1177 | 127 | text: "" | 206 | text: "" |
1178 | 128 | echoMode: TextInput.PasswordEchoOnEdit | 207 | echoMode: TextInput.PasswordEchoOnEdit |
1179 | @@ -130,16 +209,17 @@ | |||
1180 | 130 | } | 209 | } |
1181 | 131 | Button { | 210 | Button { |
1182 | 132 | id: addConfirmButton | 211 | id: addConfirmButton |
1184 | 133 | text: "Save" | 212 | text: i18n.tr("Save") |
1185 | 134 | gradient: UbuntuColors.orangeGradient | 213 | gradient: UbuntuColors.orangeGradient |
1186 | 135 | onClicked: { | 214 | onClicked: { |
1187 | 136 | uReadIt.qreddit._addUser(addUsernameField.text, addPasswordField.text) | 215 | uReadIt.qreddit._addUser(addUsernameField.text, addPasswordField.text) |
1188 | 216 | usersModel.append({"name": addUsernameField.text}) | ||
1189 | 137 | PopupUtils.close(addAccountDialog) | 217 | PopupUtils.close(addAccountDialog) |
1190 | 138 | } | 218 | } |
1191 | 139 | } | 219 | } |
1192 | 140 | Button { | 220 | Button { |
1193 | 141 | id: addCancelButton | 221 | id: addCancelButton |
1195 | 142 | text: "Cancel" | 222 | text: i18n.tr("Cancel") |
1196 | 143 | onClicked: { | 223 | onClicked: { |
1197 | 144 | PopupUtils.close(addAccountDialog) | 224 | PopupUtils.close(addAccountDialog) |
1198 | 145 | } | 225 | } |
1199 | 146 | 226 | ||
1200 | === modified file 'ui/UserMessagesPage.qml' | |||
1201 | --- ui/UserMessagesPage.qml 2015-07-24 20:07:32 +0000 | |||
1202 | +++ ui/UserMessagesPage.qml 2015-07-25 07:54:46 +0000 | |||
1203 | @@ -1,5 +1,5 @@ | |||
1206 | 1 | import QtQuick 2.0 | 1 | import QtQuick 2.4 |
1207 | 2 | import Ubuntu.Components 1.1 | 2 | import Ubuntu.Components 1.2 |
1208 | 3 | import Ubuntu.Components.ListItems 1.0 | 3 | import Ubuntu.Components.ListItems 1.0 |
1209 | 4 | import "../models/QReddit" | 4 | import "../models/QReddit" |
1210 | 5 | import "../components" | 5 | import "../components" |
1211 | 6 | 6 | ||
1212 | === modified file 'ureadit.apparmor' | |||
1213 | --- ureadit.apparmor 2015-04-28 21:48:12 +0000 | |||
1214 | +++ ureadit.apparmor 2015-07-25 07:54:46 +0000 | |||
1215 | @@ -6,5 +6,5 @@ | |||
1216 | 6 | "content_exchange_source", | 6 | "content_exchange_source", |
1217 | 7 | "content_exchange" | 7 | "content_exchange" |
1218 | 8 | ], | 8 | ], |
1220 | 9 | "policy_version": 1.2 | 9 | "policy_version": 1.3 |
1221 | 10 | } | 10 | } |
1222 | 11 | \ No newline at end of file | 11 | \ No newline at end of file |
I was meaning to push this for review, but completely forgot it during the last few days.