~majster-pl/ubuntu-calendar-app/new-event-page

« back to all changes in this revision

Viewing changes to NewEvent.qml

  • Committer: Szymon Waliczek
  • Date: 2016-03-15 21:24:41 UTC
  • Revision ID: majsterrr@gmail.com-20160315212441-fr9s45dntm0gvvot

Added Flickable to EventRepetition.qml and fixed anchoring to header.
Removed unnecessary empty lanes and code clean up.

Show diffs side-by-side

added added

removed removed

Lines of Context:
379
379
        }
380
380
    }
381
381
 
382
 
 
383
382
    Component{
384
383
        id: errorDlgComponent
385
384
        Dialog {
396
395
        id:eventUtils
397
396
    }
398
397
 
399
 
 
400
 
 
401
 
 
402
398
    Flickable{
403
399
        id: flickable
404
 
        clip: true
405
400
 
406
401
        property var activeItem: null
407
402
 
431
426
            flickable.returnToBounds()
432
427
        }
433
428
 
 
429
        clip: true
434
430
        flickableDirection: Flickable.VerticalFlick
435
431
        anchors{
436
432
            left: parent.left
437
 
            top: root.header.bottom
 
433
            top: parent.header.bottom
438
434
            right: parent.right
439
435
            bottom: keyboardRectangle.top
440
436
        }
441
437
        contentWidth: width
442
438
        contentHeight: column.height
443
439
 
444
 
 
445
 
 
446
440
        Column {
447
441
            id: column
448
442
 
616
610
                        elide: Text.ElideRight
617
611
                    }
618
612
 
619
 
                    // Below TextField is from new designs but because designs are not completed we have to keep old
620
 
                    // add guest solution.
621
 
//                    TextField {
622
 
//                        id: guestsEdit
623
 
//                        objectName: "eventLocationInput"
624
 
 
625
 
//                        width: parent.width
626
 
//                        inputMethodHints: Qt.ImhNoPredictiveText
627
 
//                        placeholderText: i18n.tr("Add guests")
628
 
 
629
 
//                        onFocusChanged: {
630
 
//                            if(guestsEdit.focus) {
631
 
//                                flickable.makeMeVisible(guestsEdit);
632
 
//                            }
633
 
//                        }
634
 
//                    }
635
 
 
636
 
                    ////////////
637
 
                    // TODO: add guest button is from old design and have to be updated when we receive new designs
638
 
 
639
613
                    Button{
640
614
                        id: addGuestButton
641
615
                        objectName: "addGuestButton"
643
617
                        property var contactsPopup: null
644
618
 
645
619
                        text: i18n.tr("Add Guest")
646
 
                        anchors {
647
 
                            left: parent.left
648
 
                            right: parent.right
649
 
//                            margins: units.gu(2)
650
 
                        }
 
620
                        anchors { left: parent.left; right: parent.right }
651
621
 
652
622
                        onClicked: {
653
623
                            if (contactsPopup)