Merge lp:~rpadovani/ubuntu-calendar-app/1240152 into lp:ubuntu-calendar-app

Proposed by Riccardo Padovani
Status: Merged
Approved by: Alan Pope 🍺🐧🐱 πŸ¦„
Approved revision: 169
Merged at revision: 170
Proposed branch: lp:~rpadovani/ubuntu-calendar-app/1240152
Merge into: lp:ubuntu-calendar-app
Diff against target: 50 lines (+9/-6)
1 file modified
NewEvent.qml (+9/-6)
To merge this branch: bzr merge lp:~rpadovani/ubuntu-calendar-app/1240152
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Kunal Parmar Approve
Review via email: mp+193191@code.launchpad.net

Commit message

Description of the change

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: Needs Fixing (continuous-integration)
Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

Hi, I think we are here assuming that frequency label's width is always going to be larger than reminder label. but depending on language this might not be true.

I think best way it to check which label's width is larger and use that for reference value instead of using frequency label's width as reference.

Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

6 Row{
7 width: parent.width
8 - spacing: units.gu(1)
9 + spacing: units.gu(1) + (frequencyLabel.width - remindLabel.width) // This is to align right the optionSelector

Hi, I think we should use Item here instead of Row, and use anchoring to align OptionSelector to right and we can set width to OptionSelector, as you are doing already.

And can get rid of following

spacing: units.gu(1) + (frequencyLabel.width - remindLabel.width) // This is to align right the optionSelector

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

Hi Kunal,
thanks for your review.

I updated the code following your indication!

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
Kunal Parmar (pkunal-parmar) wrote :

looks good now, thanks :)

review: Approve
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Andrea Cerisara (acerisara) wrote :

Hello Riccardo, problems are related to tests that are broken. Going to fix them and create a separate mp, sorry for this.

167. By Riccardo Padovani

Relaunch Jenkins test

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
168. By Riccardo Padovani

Merged with current rev

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
169. By Riccardo Padovani

Merge from trunk

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'NewEvent.qml'
--- NewEvent.qml 2013-10-16 14:15:06 +0000
+++ NewEvent.qml 2013-11-27 22:38:39 +0000
@@ -12,6 +12,7 @@
12 property var date: new Date();12 property var date: new Date();
13 property var startDate;13 property var startDate;
14 property var endDate;14 property var endDate;
15 property int optionSelectorWidth: frequencyLabel.width > remindLabel.width ? frequencyLabel.width : remindLabel.width
1516
16 property alias scrollY: flickable.contentY17 property alias scrollY: flickable.contentY
1718
@@ -239,30 +240,32 @@
239 objectName: "eventPeopleInput"240 objectName: "eventPeopleInput"
240 }241 }
241242
242 Row{243 Item {
243 width: parent.width244 width: parent.width
244 spacing: units.gu(1)245 height: childrenRect.height
245 Label{246 Label{
246 id: frequencyLabel247 id: frequencyLabel
247 text: i18n.tr("This happens");248 text: i18n.tr("This happens");
248 anchors.verticalCenter: parent.verticalCenter249 anchors.verticalCenter: parent.verticalCenter
249 }250 }
250 OptionSelector{251 OptionSelector{
252 anchors.right: parent.right
253 width: parent.width - optionSelectorWidth - units.gu(1)
251 model:[i18n.tr("Once"),i18n.tr("Daily"),i18n.tr("Weekly"),i18n.tr("Monthly"),i18n.tr("Yearly")]254 model:[i18n.tr("Once"),i18n.tr("Daily"),i18n.tr("Weekly"),i18n.tr("Monthly"),i18n.tr("Yearly")]
252 width: parent.width - frequencyLabel.width - units.gu(1)
253 }255 }
254 }256 }
255257
256 Row{258 Item{
257 width: parent.width259 width: parent.width
258 spacing: units.gu(1)260 height: childrenRect.height
259 Label{261 Label{
260 id: remindLabel262 id: remindLabel
261 text: i18n.tr("Remind me");263 text: i18n.tr("Remind me");
262 anchors.verticalCenter: parent.verticalCenter264 anchors.verticalCenter: parent.verticalCenter
263 }265 }
264 OptionSelector{266 OptionSelector{
265 width: parent.width - remindLabel.width - units.gu(1)267 anchors.right: parent.right
268 width: parent.width - optionSelectorWidth - units.gu(1)
266 model:[i18n.tr("No Reminder"),269 model:[i18n.tr("No Reminder"),
267 i18n.tr("5 minutes"),270 i18n.tr("5 minutes"),
268 i18n.tr("15 minutes"),271 i18n.tr("15 minutes"),

Subscribers

People subscribed via source and target branches

to status/vote changes: