Merge lp:~rpadovani/reminders-app/1382176 into lp:reminders-app

Proposed by Riccardo Padovani
Status: Rejected
Rejected by: Michael Zanetti
Proposed branch: lp:~rpadovani/reminders-app/1382176
Merge into: lp:reminders-app
Diff against target: 46 lines (+11/-17)
1 file modified
src/app/qml/components/NotesDelegate.qml (+11/-17)
To merge this branch: bzr merge lp:~rpadovani/reminders-app/1382176
Reviewer Review Type Date Requested Status
Michael Zanetti (community) Disapprove
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+241936@code.launchpad.net

Commit message

Fixed #1382176 - Tags overlap the date in the notes list

Description of the change

Fixed #1382176 - Tags overlap the date in the notes list

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Michael Zanetti (mzanetti) wrote :

Not happy with this:

* Date format seems useless, shows the day twice, but the month and year not at all, while still taking a lot of space

* Label should use "elide" instead of wrapmode and maxlinecount...

Anyhow, I've merged this to the offline mode branch and tweaked it

review: Disapprove

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/app/qml/components/NotesDelegate.qml'
--- src/app/qml/components/NotesDelegate.qml 2014-10-24 17:50:27 +0000
+++ src/app/qml/components/NotesDelegate.qml 2014-11-17 10:21:49 +0000
@@ -84,7 +84,11 @@
84 Label {84 Label {
85 Layout.fillWidth: true85 Layout.fillWidth: true
86 Layout.fillHeight: true86 Layout.fillHeight: true
87 text: root.content87 // TRANSLATORS: the argument is a modification date that follows this format:
88 // http://qt-project.org/doc/qt-5/qml-qtqml-date.html
89 text: "<font color=\"" + root.notebookColor + "\">" +
90 Qt.formatDateTime(root.creationDate, i18n.tr("ddd, d hh:mm")) +
91 " </font>" + root.content
88 wrapMode: Text.WordWrap92 wrapMode: Text.WordWrap
89 textFormat: Text.StyledText93 textFormat: Text.StyledText
90 maximumLineCount: 294 maximumLineCount: 2
@@ -92,23 +96,13 @@
92 color: "black"96 color: "black"
93 }97 }
9498
95 RowLayout {99 Label {
96 Layout.fillWidth: true100 Layout.fillWidth: true
97 Label {101 text: root.tags
98 Layout.fillWidth: true102 wrapMode: Text.WordWrap
99 text: root.tags103 maximumLineCount: 1
100 fontSize: "small"104 fontSize: "small"
101 color: "#b3b3b3"105 color: "#b3b3b3"
102
103 }
104 Label {
105 // TRANSLATORS: the argument is a modification date that follows this format:
106 // http://qt-project.org/doc/qt-5/qml-qtqml-date.html
107 text: Qt.formatDateTime(root.creationDate, i18n.tr("dddd, d hh:mm"))
108 color: "#b3b3b3"
109 fontSize: "small"
110 horizontalAlignment: Text.AlignRight
111 }
112 }106 }
113 }107 }
114 }108 }

Subscribers

People subscribed via source and target branches