~mihirsoni/ubuntu-calendar-app/1291906

« back to all changes in this revision

Viewing changes to EditEventConfirmationDialog.qml

  • Committer: Kunal Parmar
  • Date: 2014-05-24 07:00:58 UTC
  • mfrom: (297 ubuntu-calendar-app)
  • mto: This revision was merged to the branch mainline in revision 312.
  • Revision ID: pkunal.parmar@gmail.com-20140524070058-huxlv1g6uflil4f9
mergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import QtQuick 2.0
 
2
import Ubuntu.Components 0.1
 
3
import Ubuntu.Components.Popups 0.1
 
4
 
 
5
Dialog {
 
6
    id: dialogue
 
7
 
 
8
    property var event;
 
9
 
 
10
    signal editEvent(var eventId);
 
11
 
 
12
    title: i18n.tr("Edit Event")
 
13
 
 
14
    text: i18n.tr('Edit only this event "'+event.displayLabel+'", or all events in the series?');
 
15
 
 
16
    Button {
 
17
        text: i18n.tr("Edit series")
 
18
        color: UbuntuColors.orange
 
19
        onClicked: {
 
20
            dialogue.editEvent(event.parentId);
 
21
            PopupUtils.close(dialogue)
 
22
        }
 
23
    }
 
24
 
 
25
    Button {
 
26
        text: i18n.tr("Edit this")
 
27
        color: UbuntuColors.orange
 
28
        onClicked: {
 
29
            dialogue.editEvent(event.itemId);
 
30
            PopupUtils.close(dialogue)
 
31
        }
 
32
    }
 
33
 
 
34
    Button {
 
35
        text: i18n.tr("Cancel")
 
36
        onClicked: PopupUtils.close(dialogue)
 
37
    }
 
38
}