~nskaggs/ubuntu-calendar-app/assert-with-utc

« back to all changes in this revision

Viewing changes to calendar.qml

  • Committer: Kunal Parmar
  • Date: 2014-04-11 00:21:42 UTC
  • mfrom: (239 trunk)
  • mto: This revision was merged to the branch mainline in revision 240.
  • Revision ID: pkunal.parmar@gmail.com-20140411002142-gr3n2ik3loebc16y
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
 
53
53
    width: units.gu(100)
54
54
    height: units.gu(80)
 
55
    focus: true
 
56
    Keys.forwardTo: [yearView,monthView,weekView,dayView,pageStack.currentPage,tabPage]
55
57
 
56
58
    headerColor: "#266249"
57
59
    backgroundColor: "#478158"
184
186
            // This is for wait that the app is load when newEvent is invoked by argument
185
187
            Timer {
186
188
                id: timer
187
 
                interval: 200;
188
 
                running: false;
189
 
                repeat: false
 
189
                interval: 200; running: false; repeat: false
190
190
                onTriggered: {
191
191
                    tabPage.newEvent();
192
192
                }
224
224
                }
225
225
            }
226
226
 
 
227
            Keys.onTabPressed: {
 
228
                if( event.modifiers & Qt.ControlModifier) {
 
229
                    var currentTab = tabs.selectedTabIndex;
 
230
                    currentTab ++;
 
231
                    if( currentTab >= tabs.tabChildren.length){
 
232
                        currentTab = 0;
 
233
                    }
 
234
                    tabs.selectedTabIndex = currentTab;
 
235
                }
 
236
            }
 
237
 
 
238
            Keys.onBacktabPressed: {
 
239
                if( event.modifiers & Qt.ControlModifier) {
 
240
                    var currentTab = tabs.selectedTabIndex;
 
241
                    currentTab --;
 
242
                    if( currentTab < 0){
 
243
                        currentTab = tabs.tabChildren.length -1;
 
244
                    }
 
245
                    tabs.selectedTabIndex = currentTab;
 
246
                }
 
247
            }
 
248
 
227
249
            Tabs{
228
250
                id: tabs
229
251