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
1=== modified file 'src/app/qml/components/NotesDelegate.qml'
2--- src/app/qml/components/NotesDelegate.qml 2014-10-24 17:50:27 +0000
3+++ src/app/qml/components/NotesDelegate.qml 2014-11-17 10:21:49 +0000
4@@ -84,7 +84,11 @@
5 Label {
6 Layout.fillWidth: true
7 Layout.fillHeight: true
8- text: root.content
9+ // TRANSLATORS: the argument is a modification date that follows this format:
10+ // http://qt-project.org/doc/qt-5/qml-qtqml-date.html
11+ text: "<font color=\"" + root.notebookColor + "\">" +
12+ Qt.formatDateTime(root.creationDate, i18n.tr("ddd, d hh:mm")) +
13+ " </font>" + root.content
14 wrapMode: Text.WordWrap
15 textFormat: Text.StyledText
16 maximumLineCount: 2
17@@ -92,23 +96,13 @@
18 color: "black"
19 }
20
21- RowLayout {
22+ Label {
23 Layout.fillWidth: true
24- Label {
25- Layout.fillWidth: true
26- text: root.tags
27- fontSize: "small"
28- color: "#b3b3b3"
29-
30- }
31- Label {
32- // TRANSLATORS: the argument is a modification date that follows this format:
33- // http://qt-project.org/doc/qt-5/qml-qtqml-date.html
34- text: Qt.formatDateTime(root.creationDate, i18n.tr("dddd, d hh:mm"))
35- color: "#b3b3b3"
36- fontSize: "small"
37- horizontalAlignment: Text.AlignRight
38- }
39+ text: root.tags
40+ wrapMode: Text.WordWrap
41+ maximumLineCount: 1
42+ fontSize: "small"
43+ color: "#b3b3b3"
44 }
45 }
46 }

Subscribers

People subscribed via source and target branches