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

« back to all changes in this revision

Viewing changes to calendar.qml

  • Committer: Mihir Soni
  • Date: 2014-10-22 14:03:01 UTC
  • mto: This revision was merged to the branch mainline in revision 521.
  • Revision ID: mihirsoni.123@gmail.com-20141022140301-qwow5d82hp0evo1o
Moved Limit Labels to model

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
import Ubuntu.Components 1.1
20
20
import Ubuntu.Components.Popups 1.0
21
21
import QtOrganizer 5.0
 
22
import Ubuntu.SyncMonitor 0.1
22
23
 
23
24
import "dateExt.js" as DateExt
24
25
 
95
96
    footerColor: "#ECECEC"
96
97
    anchorToKeyboard: true
97
98
 
 
99
    SyncMonitor {
 
100
        id: syncMonitor
 
101
    }
98
102
 
99
103
    PageStack {
100
104
        id: pageStack
195
199
            property int starttime: -1;
196
200
            property int endtime: -1;
197
201
 
198
 
            selectedTabIndex: weekTab.index
 
202
            selectedTabIndex: monthTab.index
199
203
 
200
204
            function newEvent() {
201
205
                var startDate = new Date();
276
280
                        }
277
281
                        else {
278
282
                            // If no endtime has been setted, open the starttime date in day view
279
 
                            tabs.selectedTabIndex = dayTab.index;
 
283
                            tabs.selectedTabIndex = 3;
280
284
                        }
281
285
                    } // End of else if (starttime)
282
286
                    else {
283
287
                        // Due to bug #1231558 {if (args.defaultArgument.at(0))} is always true
284
288
                        // After the fix we can delete this else
285
 
                        tabs.selectedTabIndex = weekTab.index;
 
289
                        tabs.selectedTabIndex= 1;
286
290
                    }
287
291
                } // End of if about args.values
288
292
                else {
289
 
                    tabs.selectedTabIndex = weekTab.index;
 
293
                    tabs.selectedTabIndex= 1;
290
294
                }
291
295
            } // End of Component.onCompleted:
292
296
 
452
456
                    objectName: "agendaViewLoader"
453
457
                    source: tabs.selectedTab == agendaTab ? Qt.resolvedUrl("AgendaView.qml"):""
454
458
 
 
459
                    onLoaded: {
 
460
                        item.currentDay = tabs.currentDay;
 
461
                    }
 
462
 
455
463
                    anchors{
456
464
                        left: parent.left
457
465
                        right: parent.right