Merge lp:~mzanetti/reminders-app/edit-note-improvements into lp:reminders-app
- edit-note-improvements
- Merge into trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Riccardo Padovani | ||||
Approved revision: | 381 | ||||
Merged at revision: | 392 | ||||
Proposed branch: | lp:~mzanetti/reminders-app/edit-note-improvements | ||||
Merge into: | lp:reminders-app | ||||
Diff against target: |
460 lines (+127/-150) 4 files modified
src/app/qml/components/RtfButton.qml (+25/-16) src/app/qml/ui/EditNotePage.qml (+0/-1) src/app/qml/ui/EditNoteView.qml (+102/-131) src/app/qml/ui/NotesPage.qml (+0/-2) |
||||
To merge this branch: | bzr merge lp:~mzanetti/reminders-app/edit-note-improvements | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu Phone Apps Jenkins Bot | continuous-integration | Approve | |
Riccardo Padovani | Approve | ||
Review via email: mp+253010@code.launchpad.net |
Commit message
Further improve edit dialog. More space for the actual content, implicitly save the note.
Description of the change
Further improve edit dialog. More space for the actual content, implicitly save the note.
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
Riccardo Padovani (rpadovani) wrote : | # |
What a nice improvement :-)
Cool, congrats!
The only problem I found (but if you want we can fix in a later branch) is in the bottom edge: it's reported as notebook a random notebook, and not the one in which the note will be create.
Just let me know if you want to fix later (and so I approve this) or you'll do it here
Michael Zanetti (mzanetti) wrote : | # |
> What a nice improvement :-)
>
> Cool, congrats!
>
> The only problem I found (but if you want we can fix in a later branch) is in
> the bottom edge: it's reported as notebook a random notebook, and not the one
> in which the note will be create.
>
> Just let me know if you want to fix later (and so I approve this) or you'll do
> it here
I've tried to fix that now but it's not as easy. It would require some reworking of how the bottom edge is created etc. Let's not do that until we have a clearer idea what will happen to the bottom edge in the convergenced world.
Riccardo Padovani (rpadovani) wrote : | # |
Yes, I agree: then I top approve this branch, it's very cool :-)
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) : | # |
Preview Diff
1 | === modified file 'src/app/qml/components/RtfButton.qml' | |||
2 | --- src/app/qml/components/RtfButton.qml 2014-11-10 23:31:45 +0000 | |||
3 | +++ src/app/qml/components/RtfButton.qml 2015-03-16 00:46:37 +0000 | |||
4 | @@ -17,14 +17,17 @@ | |||
5 | 17 | */ | 17 | */ |
6 | 18 | 18 | ||
7 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.3 |
8 | 20 | import QtQuick.Layouts 1.1 | ||
9 | 20 | import Ubuntu.Components 1.1 | 21 | import Ubuntu.Components 1.1 |
10 | 21 | 22 | ||
11 | 22 | Item { | 23 | Item { |
12 | 23 | id: root | 24 | id: root |
13 | 25 | implicitWidth: Math.max(height, contentRow.width + units.gu(1)) | ||
14 | 24 | property alias text: textField.text | 26 | property alias text: textField.text |
15 | 25 | property alias iconName: icon.name | 27 | property alias iconName: icon.name |
16 | 26 | property alias iconSource: icon.source | 28 | property alias iconSource: icon.source |
17 | 27 | property string color: "transparent" | 29 | property string color: "transparent" |
18 | 30 | property alias iconColor: icon.color | ||
19 | 28 | property alias horizontalAlignment: textField.horizontalAlignment | 31 | property alias horizontalAlignment: textField.horizontalAlignment |
20 | 29 | 32 | ||
21 | 30 | property alias font: textField.font | 33 | property alias font: textField.font |
22 | @@ -36,6 +39,7 @@ | |||
23 | 36 | opacity: enabled ? 1 : 0.5 | 39 | opacity: enabled ? 1 : 0.5 |
24 | 37 | 40 | ||
25 | 38 | MouseArea { | 41 | MouseArea { |
26 | 42 | id: mouseArea | ||
27 | 39 | anchors.fill: parent | 43 | anchors.fill: parent |
28 | 40 | onClicked: root.clicked() | 44 | onClicked: root.clicked() |
29 | 41 | } | 45 | } |
30 | @@ -43,22 +47,27 @@ | |||
31 | 43 | Rectangle { | 47 | Rectangle { |
32 | 44 | anchors.fill: parent | 48 | anchors.fill: parent |
33 | 45 | color: UbuntuColors.darkGrey | 49 | color: UbuntuColors.darkGrey |
50 | 46 | opacity: root.active ? 0.2 : 0 | 50 | opacity: root.active || mouseArea.pressed ? 0.2 : 0 |
51 | 47 | } | 51 | } |
52 | 48 | 52 | ||
53 | 49 | Label { | 53 | Row { |
54 | 50 | id: textField | 54 | id: contentRow |
55 | 51 | anchors { top: parent.top; bottom: parent.bottom; left: parent.left } | 55 | anchors { top: parent.top; bottom: parent.bottom; left: parent.left; leftMargin: units.gu(0.5) } |
56 | 52 | verticalAlignment: Text.AlignVCenter | 56 | spacing: units.gu(0.5) |
57 | 53 | horizontalAlignment: Text.AlignHCenter | 57 | Icon { |
58 | 54 | width: parent.width | 58 | id: icon |
59 | 55 | elide: Text.ElideRight | 59 | anchors { top: parent.top; bottom: parent.bottom; margins: units.gu(0.5) } |
60 | 56 | } | 60 | width: height |
61 | 57 | 61 | visible: source.toString().length > 0 | |
62 | 58 | Icon { | 62 | } |
63 | 59 | id: icon | 63 | Label { |
64 | 60 | anchors.fill: parent | 64 | id: textField |
65 | 61 | anchors.margins: units.gu(0.5) | 65 | anchors { top: parent.top; bottom: parent.bottom; margins: units.gu(0.5) } |
66 | 66 | verticalAlignment: Text.AlignVCenter | ||
67 | 67 | horizontalAlignment: Text.AlignHCenter | ||
68 | 68 | elide: Text.ElideRight | ||
69 | 69 | width: Math.min(implicitWidth, root.width) | ||
70 | 70 | } | ||
71 | 62 | } | 71 | } |
72 | 63 | 72 | ||
73 | 64 | UbuntuShape { | 73 | UbuntuShape { |
74 | 65 | 74 | ||
75 | === modified file 'src/app/qml/ui/EditNotePage.qml' | |||
76 | --- src/app/qml/ui/EditNotePage.qml 2014-09-23 12:39:27 +0000 | |||
77 | +++ src/app/qml/ui/EditNotePage.qml 2015-03-16 00:46:37 +0000 | |||
78 | @@ -25,7 +25,6 @@ | |||
79 | 25 | Page { | 25 | Page { |
80 | 26 | id: root | 26 | id: root |
81 | 27 | property alias note: editNoteView.note | 27 | property alias note: editNoteView.note |
82 | 28 | property alias isBottomEdge: editNoteView.isBottomEdge | ||
83 | 29 | 28 | ||
84 | 30 | signal exitEditMode(var note) | 29 | signal exitEditMode(var note) |
85 | 31 | 30 | ||
86 | 32 | 31 | ||
87 | === modified file 'src/app/qml/ui/EditNoteView.qml' | |||
88 | --- src/app/qml/ui/EditNoteView.qml 2015-03-05 18:23:25 +0000 | |||
89 | +++ src/app/qml/ui/EditNoteView.qml 2015-03-16 00:46:37 +0000 | |||
90 | @@ -30,7 +30,6 @@ | |||
91 | 30 | Item { | 30 | Item { |
92 | 31 | id: root | 31 | id: root |
93 | 32 | property var note | 32 | property var note |
94 | 33 | property bool isBottomEdge: false | ||
95 | 34 | 33 | ||
96 | 35 | onNoteChanged: { | 34 | onNoteChanged: { |
97 | 36 | for (var i = 0; i < notebookSelector.values.count; i++) { | 35 | for (var i = 0; i < notebookSelector.values.count; i++) { |
98 | @@ -81,62 +80,17 @@ | |||
99 | 81 | } | 80 | } |
100 | 82 | } | 81 | } |
101 | 83 | 82 | ||
106 | 84 | Binding { | 83 | Connections { |
107 | 85 | target: note | 84 | target: noteTextArea |
108 | 86 | property: "renderWidth" | 85 | onWidthChanged: { |
109 | 87 | value: noteTextArea.width - noteTextArea.textMargin * 2 | 86 | note.richTextContent = noteTextArea.text; |
110 | 87 | note.renderWidth = noteTextArea.width - noteTextArea.textMargin | ||
111 | 88 | } | ||
112 | 88 | } | 89 | } |
113 | 89 | 90 | ||
114 | 90 | Column { | 91 | Column { |
115 | 91 | anchors { left: parent.left; top: parent.top; right: parent.right; bottom: toolbox.top } | 92 | anchors { left: parent.left; top: parent.top; right: parent.right; bottom: toolbox.top } |
116 | 92 | 93 | ||
117 | 93 | Row { | ||
118 | 94 | visible: !root.isBottomEdge | ||
119 | 95 | anchors { left: parent.left; right: parent.right; margins: units.gu(1) } | ||
120 | 96 | height: units.gu(7) | ||
121 | 97 | spacing: units.gu(2) | ||
122 | 98 | AbstractButton { | ||
123 | 99 | id: backIcon | ||
124 | 100 | height: units.gu(3) | ||
125 | 101 | width: height | ||
126 | 102 | anchors.verticalCenter: parent.verticalCenter | ||
127 | 103 | Icon { | ||
128 | 104 | name: "back" | ||
129 | 105 | anchors.fill: parent | ||
130 | 106 | } | ||
131 | 107 | onClicked: { | ||
132 | 108 | root.exitEditMode(root.note); | ||
133 | 109 | } | ||
134 | 110 | } | ||
135 | 111 | |||
136 | 112 | TextField { | ||
137 | 113 | id: titleTextField | ||
138 | 114 | text: root.note ? root.note.title : "" | ||
139 | 115 | placeholderText: i18n.tr("Untitled") | ||
140 | 116 | height: units.gu(4) | ||
141 | 117 | width: parent.width - (backIcon.width + parent.spacing) * 2 | ||
142 | 118 | anchors.verticalCenter: parent.verticalCenter | ||
143 | 119 | } | ||
144 | 120 | AbstractButton { | ||
145 | 121 | height: units.gu(3) | ||
146 | 122 | width: height | ||
147 | 123 | anchors.verticalCenter: parent.verticalCenter | ||
148 | 124 | Icon { | ||
149 | 125 | name: "save" | ||
150 | 126 | anchors.fill: parent | ||
151 | 127 | } | ||
152 | 128 | onClicked: { | ||
153 | 129 | saveNote(); | ||
154 | 130 | root.exitEditMode(root.note); | ||
155 | 131 | } | ||
156 | 132 | } | ||
157 | 133 | } | ||
158 | 134 | |||
159 | 135 | Divider { | ||
160 | 136 | visible: !root.isBottomEdge | ||
161 | 137 | height: units.gu(2) | ||
162 | 138 | } | ||
163 | 139 | |||
164 | 140 | Rectangle { | 94 | Rectangle { |
165 | 141 | anchors { left: parent.left; right: parent.right } | 95 | anchors { left: parent.left; right: parent.right } |
166 | 142 | height: parent.height - y | 96 | height: parent.height - y |
167 | @@ -152,14 +106,16 @@ | |||
168 | 152 | 106 | ||
169 | 153 | function ensureVisible(r) | 107 | function ensureVisible(r) |
170 | 154 | { | 108 | { |
171 | 109 | var staticHeight = titleTextField.height + notebookSelector.height | ||
172 | 155 | if (contentX >= r.x) | 110 | if (contentX >= r.x) |
173 | 156 | contentX = r.x; | 111 | contentX = r.x; |
175 | 157 | else if (contentX+width <= r.x+r.width) | 112 | else if (contentX +width <= r.x+r.width) |
176 | 158 | contentX = r.x+r.width-width; | 113 | contentX = r.x+r.width-width; |
177 | 159 | if (contentY >= r.y) | 114 | if (contentY >= r.y) |
178 | 160 | contentY = r.y; | 115 | contentY = r.y; |
181 | 161 | else if (contentY+height-notebookSelector.height <= r.y+r.height) | 116 | else if (contentY + height <= r.y + staticHeight + r.height) { |
182 | 162 | contentY = r.y+r.height-height+notebookSelector.height; | 117 | contentY = r.y + r.height - staticHeight; |
183 | 118 | } | ||
184 | 163 | } | 119 | } |
185 | 164 | 120 | ||
186 | 165 | Column { | 121 | Column { |
187 | @@ -167,17 +123,84 @@ | |||
188 | 167 | width: parent.width | 123 | width: parent.width |
189 | 168 | height: childrenRect.height | 124 | height: childrenRect.height |
190 | 169 | 125 | ||
191 | 126 | TextField { | ||
192 | 127 | id: titleTextField | ||
193 | 128 | height: units.gu(6) | ||
194 | 129 | width: parent.width | ||
195 | 130 | text: root.note ? root.note.title : "" | ||
196 | 131 | placeholderText: i18n.tr("Untitled") | ||
197 | 132 | font.pixelSize: units.gu(4) | ||
198 | 133 | style: TextFieldStyle { | ||
199 | 134 | background: null | ||
200 | 135 | } | ||
201 | 136 | } | ||
202 | 137 | |||
203 | 138 | ThinDivider {} | ||
204 | 139 | |||
205 | 170 | ValueSelector { | 140 | ValueSelector { |
206 | 171 | id: notebookSelector | 141 | id: notebookSelector |
207 | 142 | width: parent.width | ||
208 | 172 | text: values.notebook(selectedIndex).name | 143 | text: values.notebook(selectedIndex).name |
209 | 173 | property string selectedGuid: values.notebook(selectedIndex) ? values.notebook(selectedIndex).guid : "" | 144 | property string selectedGuid: values.notebook(selectedIndex) ? values.notebook(selectedIndex).guid : "" |
210 | 174 | values: Notebooks {} | 145 | values: Notebooks {} |
211 | 146 | |||
212 | 147 | // The ValueSelector is not customizable enough, yet we wanna use the expanstion it provides. Let's just paint on top of it | ||
213 | 148 | |||
214 | 149 | Rectangle { | ||
215 | 150 | anchors { left: parent.left; right: parent.right; top: parent.top } | ||
216 | 151 | height: units.gu(6) | ||
217 | 152 | color: "white" | ||
218 | 153 | |||
219 | 154 | RowLayout { | ||
220 | 155 | anchors.fill: parent | ||
221 | 156 | anchors.margins: units.gu(1) | ||
222 | 157 | |||
223 | 158 | Item { | ||
224 | 159 | height: parent.height | ||
225 | 160 | width: height | ||
226 | 161 | Icon { | ||
227 | 162 | anchors.fill: parent | ||
228 | 163 | anchors.margins: units.gu(0.5) | ||
229 | 164 | name: "notebook" | ||
230 | 165 | color: preferences.colorForNotebook(notebookSelector.values.notebook(notebookSelector.selectedIndex).guid) | ||
231 | 166 | } | ||
232 | 167 | } | ||
233 | 168 | |||
234 | 169 | Label { | ||
235 | 170 | text: notebookSelector.values.notebook(notebookSelector.selectedIndex).name | ||
236 | 171 | Layout.fillWidth: true | ||
237 | 172 | color: preferences.colorForNotebook(notebookSelector.values.notebook(notebookSelector.selectedIndex).guid) | ||
238 | 173 | } | ||
239 | 174 | RtfButton { | ||
240 | 175 | iconName: root.note && root.note.reminder ? "reminder" : "reminder-new" | ||
241 | 176 | height: parent.height | ||
242 | 177 | width: height | ||
243 | 178 | iconColor: root.note && note.reminder ? UbuntuColors.blue : Qt.rgba(0.0, 0.0, 0.0, 0.0) | ||
244 | 179 | onClicked: { | ||
245 | 180 | Qt.inputMethod.hide(); | ||
246 | 181 | pageStack.push(Qt.resolvedUrl("SetReminderPage.qml"), { note: root.note}); | ||
247 | 182 | } | ||
248 | 183 | } | ||
249 | 184 | RtfButton { | ||
250 | 185 | id: tagsButton | ||
251 | 186 | iconSource: "../images/tags.svg" | ||
252 | 187 | height: parent.height | ||
253 | 188 | width: height | ||
254 | 189 | onClicked: { | ||
255 | 190 | Qt.inputMethod.hide(); | ||
256 | 191 | PopupUtils.open(tagsDialog) | ||
257 | 192 | } | ||
258 | 193 | } | ||
259 | 194 | } | ||
260 | 195 | } | ||
261 | 175 | } | 196 | } |
262 | 176 | 197 | ||
263 | 198 | ThinDivider {} | ||
264 | 199 | |||
265 | 177 | TextEdit { | 200 | TextEdit { |
266 | 178 | id: noteTextArea | 201 | id: noteTextArea |
267 | 179 | width: flick.width | 202 | width: flick.width |
269 | 180 | height: Math.max(flick.height - notebookSelector.height, paintedHeight) | 203 | height: Math.max(flick.height - notebookSelector.height - titleTextField.height, paintedHeight) |
270 | 181 | focus: true | 204 | focus: true |
271 | 182 | wrapMode: TextEdit.Wrap | 205 | wrapMode: TextEdit.Wrap |
272 | 183 | textFormat: TextEdit.RichText | 206 | textFormat: TextEdit.RichText |
273 | @@ -193,7 +216,6 @@ | |||
274 | 193 | Timer { | 216 | Timer { |
275 | 194 | id: setFocusTimer | 217 | id: setFocusTimer |
276 | 195 | interval: 1 | 218 | interval: 1 |
277 | 196 | running: !root.isBottomEdge | ||
278 | 197 | repeat: false | 219 | repeat: false |
279 | 198 | onTriggered: { | 220 | onTriggered: { |
280 | 199 | noteTextArea.cursorPosition = noteTextArea.length; | 221 | noteTextArea.cursorPosition = noteTextArea.length; |
281 | @@ -390,7 +412,6 @@ | |||
282 | 390 | 412 | ||
283 | 391 | property bool charFormatExpanded: false | 413 | property bool charFormatExpanded: false |
284 | 392 | property bool blockFormatExpanded: false | 414 | property bool blockFormatExpanded: false |
285 | 393 | property bool tagsRowExpanded: false | ||
286 | 394 | 415 | ||
287 | 395 | Behavior on height { UbuntuNumberAnimation {} } | 416 | Behavior on height { UbuntuNumberAnimation {} } |
288 | 396 | 417 | ||
289 | @@ -429,6 +450,7 @@ | |||
290 | 429 | horizontalAlignment: Text.AlignLeft | 450 | horizontalAlignment: Text.AlignLeft |
291 | 430 | Layout.fillWidth: true | 451 | Layout.fillWidth: true |
292 | 431 | onClicked: { | 452 | onClicked: { |
293 | 453 | Qt.inputMethod.hide(); | ||
294 | 432 | PopupUtils.open(fontPopoverComponent, fontButton, {selectionStart: noteTextArea.selectionStart, selectionEnd: noteTextArea.selectionEnd}) | 454 | PopupUtils.open(fontPopoverComponent, fontButton, {selectionStart: noteTextArea.selectionStart, selectionEnd: noteTextArea.selectionEnd}) |
295 | 433 | } | 455 | } |
296 | 434 | } | 456 | } |
297 | @@ -439,6 +461,7 @@ | |||
298 | 439 | height: parent.height | 461 | height: parent.height |
299 | 440 | width: height | 462 | width: height |
300 | 441 | onClicked: { | 463 | onClicked: { |
301 | 464 | Qt.inputMethod.hide(); | ||
302 | 442 | PopupUtils.open(fontSizePopoverComponent, fontSizeButton, {selectionStart: noteTextArea.selectionStart, selectionEnd: noteTextArea.selectionEnd}) | 465 | PopupUtils.open(fontSizePopoverComponent, fontSizeButton, {selectionStart: noteTextArea.selectionStart, selectionEnd: noteTextArea.selectionEnd}) |
303 | 443 | } | 466 | } |
304 | 444 | } | 467 | } |
305 | @@ -448,6 +471,7 @@ | |||
306 | 448 | width: height | 471 | width: height |
307 | 449 | color: formattingHelper.color | 472 | color: formattingHelper.color |
308 | 450 | onClicked: { | 473 | onClicked: { |
309 | 474 | Qt.inputMethod.hide(); | ||
310 | 451 | PopupUtils.open(colorPopoverComponent, colorButton, {selectionStart: noteTextArea.selectionStart, selectionEnd: noteTextArea.selectionEnd}) | 475 | PopupUtils.open(colorPopoverComponent, colorButton, {selectionStart: noteTextArea.selectionStart, selectionEnd: noteTextArea.selectionEnd}) |
311 | 452 | } | 476 | } |
312 | 453 | } | 477 | } |
313 | @@ -587,56 +611,9 @@ | |||
314 | 587 | formattingHelper.alignment = Qt.AlignRight | 611 | formattingHelper.alignment = Qt.AlignRight |
315 | 588 | } | 612 | } |
316 | 589 | } | 613 | } |
367 | 590 | } | 614 | Item { |
368 | 591 | 615 | Layout.fillWidth: true | |
369 | 592 | Row { | 616 | Layout.fillHeight: true |
320 | 593 | anchors { left: parent.left; right: parent.right; rightMargin: units.gu(1) } | ||
321 | 594 | height: units.gu(4) | ||
322 | 595 | visible: toolbox.tagsRowExpanded | ||
323 | 596 | spacing: units.gu(1) | ||
324 | 597 | |||
325 | 598 | Rectangle { | ||
326 | 599 | z: 100 | ||
327 | 600 | color: "#efefef" | ||
328 | 601 | height: parent.height | ||
329 | 602 | width: height + units.gu(1) | ||
330 | 603 | RtfButton { | ||
331 | 604 | id: editTagsButton | ||
332 | 605 | iconName: "edit" | ||
333 | 606 | height: parent.height | ||
334 | 607 | width: height | ||
335 | 608 | anchors.horizontalCenter: parent.horizontalCenter | ||
336 | 609 | onClicked: { | ||
337 | 610 | PopupUtils.open(tagsDialog) | ||
338 | 611 | } | ||
339 | 612 | } | ||
340 | 613 | } | ||
341 | 614 | |||
342 | 615 | ListView { | ||
343 | 616 | width: parent.width - editTagsButton.width - units.gu(1) | ||
344 | 617 | height: units.gu(4) | ||
345 | 618 | |||
346 | 619 | model: root.note ? root.note.tagGuids.length : undefined | ||
347 | 620 | orientation: ListView.Horizontal | ||
348 | 621 | spacing: units.gu(1) | ||
349 | 622 | |||
350 | 623 | |||
351 | 624 | delegate: Rectangle { | ||
352 | 625 | id: rectangle | ||
353 | 626 | radius: units.gu(1) | ||
354 | 627 | color: "white" | ||
355 | 628 | border.color: preferences.colorForNotebook(root.note.notebookGuid) | ||
356 | 629 | anchors.verticalCenter: parent.verticalCenter | ||
357 | 630 | Text { | ||
358 | 631 | text: NotesStore.tag(root.note.tagGuids[index]).name | ||
359 | 632 | color: preferences.colorForNotebook(root.note.notebookGuid) | ||
360 | 633 | Component.onCompleted: { | ||
361 | 634 | rectangle.width = width + units.gu(2) | ||
362 | 635 | rectangle.height = height + units.gu(1) | ||
363 | 636 | anchors.centerIn = parent | ||
364 | 637 | } | ||
365 | 638 | } | ||
366 | 639 | } | ||
370 | 640 | } | 617 | } |
371 | 641 | } | 618 | } |
372 | 642 | 619 | ||
373 | @@ -646,6 +623,20 @@ | |||
374 | 646 | height: units.gu(4) | 623 | height: units.gu(4) |
375 | 647 | 624 | ||
376 | 648 | RtfButton { | 625 | RtfButton { |
377 | 626 | iconName: "tick" | ||
378 | 627 | // TRANSLATORS: Button to close the edit mode | ||
379 | 628 | text: i18n.tr("Done") | ||
380 | 629 | height: parent.height | ||
381 | 630 | iconColor: UbuntuColors.green | ||
382 | 631 | onClicked: { | ||
383 | 632 | saveNote(); | ||
384 | 633 | root.exitEditMode(root.note); | ||
385 | 634 | } | ||
386 | 635 | } | ||
387 | 636 | |||
388 | 637 | RtfSeparator { } | ||
389 | 638 | |||
390 | 639 | RtfButton { | ||
391 | 649 | iconName: "undo" | 640 | iconName: "undo" |
392 | 650 | height: parent.height | 641 | height: parent.height |
393 | 651 | width: height | 642 | width: height |
394 | @@ -670,6 +661,8 @@ | |||
395 | 670 | Layout.fillWidth: true | 661 | Layout.fillWidth: true |
396 | 671 | } | 662 | } |
397 | 672 | 663 | ||
398 | 664 | RtfSeparator {} | ||
399 | 665 | |||
400 | 673 | RtfButton { | 666 | RtfButton { |
401 | 674 | iconName: "select" | 667 | iconName: "select" |
402 | 675 | height: parent.height | 668 | height: parent.height |
403 | @@ -681,15 +674,6 @@ | |||
404 | 681 | } | 674 | } |
405 | 682 | } | 675 | } |
406 | 683 | 676 | ||
407 | 684 | RtfButton { | ||
408 | 685 | iconName: note.reminder ? "reminder" : "reminder-new" | ||
409 | 686 | height: parent.height | ||
410 | 687 | width: height | ||
411 | 688 | onClicked: { | ||
412 | 689 | pageStack.push(Qt.resolvedUrl("SetReminderPage.qml"), { note: root.note}); | ||
413 | 690 | } | ||
414 | 691 | } | ||
415 | 692 | |||
416 | 693 | // TextEdit can't display horizontal lines yet :/ | 677 | // TextEdit can't display horizontal lines yet :/ |
417 | 694 | // https://bugreports.qt-project.org/browse/QTBUG-42545 | 678 | // https://bugreports.qt-project.org/browse/QTBUG-42545 |
418 | 695 | // RtfButton { | 679 | // RtfButton { |
419 | @@ -709,18 +693,7 @@ | |||
420 | 709 | priv.insertPosition = noteTextArea.cursorPosition; | 693 | priv.insertPosition = noteTextArea.cursorPosition; |
421 | 710 | note.richTextContent = noteTextArea.text; | 694 | note.richTextContent = noteTextArea.text; |
422 | 711 | importPicker.visible = true; | 695 | importPicker.visible = true; |
435 | 712 | } | 696 | Qt.inputMethod.hide(); |
424 | 713 | } | ||
425 | 714 | |||
426 | 715 | RtfSeparator {} | ||
427 | 716 | |||
428 | 717 | RtfButton { | ||
429 | 718 | iconSource: "../images/tags.svg" | ||
430 | 719 | height: parent.height | ||
431 | 720 | width: height | ||
432 | 721 | active: toolbox.tagsRowExpanded | ||
433 | 722 | onClicked: { | ||
434 | 723 | toolbox.tagsRowExpanded = !toolbox.tagsRowExpanded | ||
436 | 724 | } | 697 | } |
437 | 725 | } | 698 | } |
438 | 726 | 699 | ||
439 | @@ -736,8 +709,6 @@ | |||
440 | 736 | } | 709 | } |
441 | 737 | } | 710 | } |
442 | 738 | 711 | ||
443 | 739 | RtfSeparator {} | ||
444 | 740 | |||
445 | 741 | RtfButton { | 712 | RtfButton { |
446 | 742 | iconName: "edit-select-all" | 713 | iconName: "edit-select-all" |
447 | 743 | height: parent.height | 714 | height: parent.height |
448 | 744 | 715 | ||
449 | === modified file 'src/app/qml/ui/NotesPage.qml' | |||
450 | --- src/app/qml/ui/NotesPage.qml 2015-03-08 18:47:51 +0000 | |||
451 | +++ src/app/qml/ui/NotesPage.qml 2015-03-16 00:46:37 +0000 | |||
452 | @@ -41,8 +41,6 @@ | |||
453 | 41 | bottomEdgeLabelVisible: narrowMode && (!notes.filterNotebookGuid || !notes.loading) | 41 | bottomEdgeLabelVisible: narrowMode && (!notes.filterNotebookGuid || !notes.loading) |
454 | 42 | bottomEdgeTitle: i18n.tr("Add note") | 42 | bottomEdgeTitle: i18n.tr("Add note") |
455 | 43 | bottomEdgePageComponent: EditNotePage { | 43 | bottomEdgePageComponent: EditNotePage { |
456 | 44 | isBottomEdge: true; | ||
457 | 45 | |||
458 | 46 | MouseArea { | 44 | MouseArea { |
459 | 47 | anchors.fill: parent | 45 | anchors.fill: parent |
460 | 48 | } | 46 | } |
FAILED: Continuous integration, rev:381 /code.launchpad .net/~mzanetti/ reminders- app/edit- note-improvemen ts/+merge/ 253010/ +edit-commit- message
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https:/
http:// 91.189. 93.70:8080/ job/reminders- app-ci/ 717/ 91.189. 93.70:8080/ job/generic- mediumtests- utopic/ 2354 91.189. 93.70:8080/ job/generic- mediumtests- utopic/ 2354/artifact/ work/output/ *zip*/output. zip 91.189. 93.70:8080/ job/reminders- app-utopic- amd64-ci/ 319 91.189. 93.70:8080/ job/reminders- app-vivid- amd64-ci/ 138
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: 91.189. 93.70:8080/ job/reminders- app-ci/ 717/rebuild
http://