Merge lp:~mzanetti/reminders-app/fix-missing-checkbox into lp:reminders-app

Proposed by Michael Zanetti
Status: Merged
Approved by: Riccardo Padovani
Approved revision: 486
Merged at revision: 487
Proposed branch: lp:~mzanetti/reminders-app/fix-missing-checkbox
Merge into: lp:reminders-app
Prerequisite: lp:~mzanetti/reminders-app/workaround-oxide-race
Diff against target: 98 lines (+4/-50)
4 files modified
src/app/qml/components/RemindersDelegate.qml (+1/-1)
src/app/qml/images/unchecked.svg (+0/-46)
src/app/qml/ui/EditNoteView.qml (+1/-1)
src/libqtevernote/utils/enmldocument.cpp (+2/-2)
To merge this branch: bzr merge lp:~mzanetti/reminders-app/fix-missing-checkbox
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Riccardo Padovani Approve
Review via email: mp+270750@code.launchpad.net

This proposal supersedes a proposal from 2015-09-10.

Commit message

Fix the missing icon for unchecked checkboxes in EditNoteView

To post a comment you must log in.
Revision history for this message
Riccardo Padovani (rpadovani) wrote :

Please remove the unused file.

review: Needs Fixing
486. By Michael Zanetti

properly replace the icon with the one in the theme

Revision history for this message
Riccardo Padovani (rpadovani) wrote :

lgtm now, thanks!

review: Approve
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

PASSED: Continuous integration, rev:486
http://91.189.93.70:8080/job/reminders-app-ci/780/
Executed test runs:
    SUCCESS: http://91.189.93.70:8080/job/reminders-app-vivid-amd64-ci/202

Click here to trigger a rebuild:
http://91.189.93.70:8080/job/reminders-app-ci/780/rebuild

review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/app/qml/components/RemindersDelegate.qml'
2--- src/app/qml/components/RemindersDelegate.qml 2015-08-11 17:25:29 +0000
3+++ src/app/qml/components/RemindersDelegate.qml 2015-09-10 21:17:28 +0000
4@@ -45,7 +45,7 @@
5 triggerActionOnMouseRelease: true
6 rightSideActions: [
7 Action {
8- iconSource: root.note.reminderDone ? "image://theme/select" : "../images/unchecked.svg"
9+ iconSource: root.note.reminderDone ? "image://theme/select" : "image://theme/select-none"
10 text: root.note.reminderDone ? i18n.tr("Mark as undone") : i18n.tr("Mark as done")
11 onTriggered: {
12 note.reminderDone = !root.note.reminderDone;
13
14=== removed file 'src/app/qml/images/unchecked.svg'
15--- src/app/qml/images/unchecked.svg 2013-12-14 22:38:57 +0000
16+++ src/app/qml/images/unchecked.svg 1970-01-01 00:00:00 +0000
17@@ -1,46 +0,0 @@
18-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
19-<!-- Created with Inkscape (http://www.inkscape.org/) -->
20-
21-<svg
22- xmlns:dc="http://purl.org/dc/elements/1.1/"
23- xmlns:cc="http://creativecommons.org/ns#"
24- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
25- xmlns:svg="http://www.w3.org/2000/svg"
26- xmlns="http://www.w3.org/2000/svg"
27- version="1.1"
28- width="90"
29- height="90"
30- id="svg3140">
31- <defs
32- id="defs12" />
33- <metadata
34- id="metadata3145">
35- <rdf:RDF>
36- <cc:Work
37- rdf:about="">
38- <dc:format>image/svg+xml</dc:format>
39- <dc:type
40- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
41- <dc:title></dc:title>
42- </cc:Work>
43- </rdf:RDF>
44- </metadata>
45- <rect
46- width="90"
47- height="90"
48- x="0"
49- y="-1.4648437e-05"
50- id="rect4198"
51- style="color:#000000;fill:none" />
52- <path
53- d="m 6,24 v 42 c 0,18 3,18 30,18 h 18 c 27,0 30,0 30,-18 V 24 C 84,6 81,6 54,6 H 36 C 9,6 6,6 6,24 z M 36,12 h 18 c 24,0 24,0 24,12 v 42 c 0,12 0,12 -24,12 H 36 C 12,78 12,78 12,66 V 24 C 12,12 12,12 36,12 z"
54- id="path3759"
55- style="fill:#808080" />
56- <rect
57- width="90"
58- height="90"
59- x="0"
60- y="1.7382999e-05"
61- id="rect3045"
62- style="color:#000000;fill:none" />
63-</svg>
64
65=== modified file 'src/app/qml/ui/EditNoteView.qml'
66--- src/app/qml/ui/EditNoteView.qml 2015-09-10 21:17:27 +0000
67+++ src/app/qml/ui/EditNoteView.qml 2015-09-10 21:17:28 +0000
68@@ -622,7 +622,7 @@
69 width: height
70 onClicked: {
71 var pos = noteTextArea.cursorPosition
72- noteTextArea.insert(pos, "<img src=\"../images/unchecked.svg\" height=" + units.gu(2) + ">")
73+ noteTextArea.insert(pos, "<img src=\"image://theme/select-none\" height=" + units.gu(2) + ">")
74 noteTextArea.cursorPosition = pos + 1;
75 }
76 }
77
78=== modified file 'src/libqtevernote/utils/enmldocument.cpp'
79--- src/libqtevernote/utils/enmldocument.cpp 2015-06-14 23:34:29 +0000
80+++ src/libqtevernote/utils/enmldocument.cpp 2015-09-10 21:17:28 +0000
81@@ -236,7 +236,7 @@
82
83 if (type == TypeRichText) {
84 writer.writeStartElement("img");
85- writer.writeAttribute("src", checked ? "image://theme/select" : "../images/unchecked.svg");
86+ writer.writeAttribute("src", checked ? "image://theme/select" : "image://theme/select-none");
87 writer.writeAttribute("height", QString::number(gu(2)));
88 } else if (type == TypeHtml){
89 writer.writeStartElement("input");
90@@ -391,7 +391,7 @@
91 writer.writeStartElement("en-media");
92 writer.writeAttribute("hash", hash);
93 writer.writeAttribute("type", type);
94- } else if (imageUrl.authority() == "theme" || imageUrl.path() == "../images/unchecked.svg") {
95+ } else if (imageUrl.authority() == "theme") {
96 writer.writeStartElement("en-todo");
97 writer.writeAttribute("checked", imageUrl.path() == "/select" ? "true" : "false");
98 } else {

Subscribers

People subscribed via source and target branches