~nskaggs/ubuntu-calendar-app/regress-test

« back to all changes in this revision

Viewing changes to calendar.qml

  • Committer: Nicholas Skaggs
  • Date: 2014-06-05 19:23:45 UTC
  • Revision ID: nicholas.skaggs@canonical.com-20140605192345-gc9lqzcdeyndzsz8
remove syncmonitor to show it doesn't affect regression

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import QtQuick 2.0
2
2
import Ubuntu.Components 0.1
3
3
import Ubuntu.Components.Popups 0.1
4
 
import Ubuntu.SyncMonitor 0.1
5
4
import "dateExt.js" as DateExt
6
5
 
7
6
MainView {
61
60
    footerColor: "#ECECEC"
62
61
    anchorToKeyboard: true
63
62
 
64
 
    SyncMonitor {
65
 
        id: syncMonitor
66
 
    }
67
63
 
68
64
    PageStack {
69
65
        id: pageStack
224
220
                    }
225
221
                }
226
222
                ToolbarButton {
227
 
                    objectName: "syncbutton"
228
 
                    visible: syncMonitor.enabledServices ? syncMonitor.serviceIsEnabled("calendar") : false
229
223
                    action: Action {
230
 
                        text: enabled ? i18n.tr("Sync") : i18n.tr("Syncing")
231
 
                        iconName: "reload"
232
 
                        onTriggered: syncMonitor.sync(["calendar"])
233
 
                        enabled: (syncMonitor.state !== "syncing")
 
224
                        objectName: "syncbutton"
 
225
                        iconSource: Qt.resolvedUrl("new-event.svg");
 
226
                        text: i18n.tr("sync Event");
 
227
                        onTriggered: {
 
228
                            pageStack.push(Qt.resolvedUrl("NewEvent.qml"),{"date":tabs.currentDay,"model":eventModel});
 
229
                        }
234
230
                    }
235
231
                }
236
232
            }