~pkunal-parmar/ubuntu-calendar-app/ICalImport

« back to all changes in this revision

Viewing changes to NewEvent.qml

  • Committer: Launchpad Translations on behalf of ubuntu-calendar-dev
  • Date: 2013-09-27 06:18:03 UTC
  • Revision ID: launchpad_translations_on_behalf_of_ubuntu-calendar-dev-20130927061803-e9flhovkpqcoxq2b
Launchpad automatic translations update.

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
                                margins: units.gu(1)
87
87
                            }
88
88
                            onClicked: {
 
89
                                internal.clearFocus()
89
90
                                var popupObj = PopupUtils.open(timePicker);
90
91
                                popupObj.accepted.connect(function(startHour, startMinute) {
91
92
                                    var newDate = startDate;
119
120
                                margins: units.gu(1)
120
121
                            }
121
122
                            onClicked: {
 
123
                                internal.clearFocus()
122
124
                                var popupObj = PopupUtils.open(timePicker);
123
125
                                popupObj.accepted.connect(function(endHour, endMinute) {
124
126
                                    var newDate = endDate;
132
134
            }
133
135
        }
134
136
 
135
 
        ListItem.Header { text: i18n.tr("Location") }
 
137
        ListItem.Header { text: i18n.tr("Location & People") }
136
138
        ListItem.Empty {
137
139
            highlightWhenPressed: false
138
140
            TextField {
146
148
            }
147
149
        }
148
150
 
149
 
        ListItem.Header { text: i18n.tr("People") }
150
151
        ListItem.Empty {
151
152
            highlightWhenPressed: false
152
153
            TextField {
160
161
            }
161
162
        }
162
163
 
163
 
        ListItem.SingleControl {
 
164
        ListItem.Empty {
164
165
            highlightWhenPressed: false
165
166
            Dialog {
166
167
                id: errorPopupDialog
167
168
                title: i18n.tr("Error")
168
169
                text: ""
169
170
                Button {
170
 
                    text: i18n.tr("Ok")
 
171
                    text: i18n.tr("OK")
171
172
                    onClicked: PopupUtils.close(errorPopupDialog)
172
173
                }
173
174
            }
174
 
            control: Button {
 
175
            Button {
175
176
                objectName: "eventSaveButton"
176
177
                text: i18n.tr("Save")
177
178
                anchors {
180
181
                }
181
182
 
182
183
                onClicked: {
 
184
                    internal.clearFocus()
 
185
 
183
186
                    var error = 0;
184
187
 
185
188
                    if (startDate > endDate)
208
211
            }
209
212
        }
210
213
    }
 
214
 
 
215
    QtObject {
 
216
        id: internal
 
217
 
 
218
        function clearFocus() {
 
219
            Qt.inputMethod.hide()
 
220
            titleEdit.focus = false
 
221
            locationEdit.focus = false
 
222
            personEdit.focus = false
 
223
        }
 
224
    }
211
225
}