~pkunal-parmar/ubuntu-calendar-app/Minor-Performance

« back to all changes in this revision

Viewing changes to NewEvent.qml

  • Committer: Tarmac
  • Author(s): Riccardo Padovani
  • Date: 2013-10-16 16:51:57 UTC
  • mfrom: (122.2.14 1231136)
  • Revision ID: tarmac-20131016165157-l8ipxrxxzw4hty6r
Fixed #1231136, add support for Arguments. Fixes: https://bugs.launchpad.net/bugs/1231136.

Approved by Ubuntu Phone Apps Jenkins Bot, Mihir Soni, Charles Kerr, Ted Gould.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
    property var date: new Date();
13
13
    property var startDate;
14
14
    property var endDate;
15
 
    property int optionSelectorWidth: frequencyLabel.width > remindLabel.width ? frequencyLabel.width : remindLabel.width
16
15
 
17
16
    property alias scrollY: flickable.contentY
18
17
 
240
239
                objectName: "eventPeopleInput"
241
240
            }
242
241
 
243
 
            Item {
 
242
            Row{
244
243
                width: parent.width
245
 
                height: childrenRect.height
 
244
                spacing: units.gu(1)
246
245
                Label{
247
246
                    id: frequencyLabel
248
247
                    text: i18n.tr("This happens");
249
248
                    anchors.verticalCenter: parent.verticalCenter
250
249
                }
251
250
                OptionSelector{
252
 
                    anchors.right: parent.right
253
 
                    width: parent.width - optionSelectorWidth - units.gu(1)
254
251
                    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)
255
253
                }
256
254
            }
257
255
 
258
 
            Item{
 
256
            Row{
259
257
                width: parent.width
260
 
                height: childrenRect.height
 
258
                spacing: units.gu(1)
261
259
                Label{
262
260
                    id: remindLabel
263
261
                    text: i18n.tr("Remind me");
264
262
                    anchors.verticalCenter: parent.verticalCenter
265
263
                }
266
264
                OptionSelector{
267
 
                    anchors.right: parent.right
268
 
                    width: parent.width - optionSelectorWidth - units.gu(1)
 
265
                    width: parent.width - remindLabel.width - units.gu(1)
269
266
                    model:[i18n.tr("No Reminder"),
270
267
                        i18n.tr("5 minutes"),
271
268
                        i18n.tr("15 minutes"),