~tpeeters/ubuntu-ui-toolkit/toolbar-reveal2

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/Toolbar.qml

  • Committer: tpeeters
  • Date: 2013-10-21 09:53:56 UTC
  • Revision ID: tim.peeters@canonical.com-20131021095356-3fp0e920j4relfly
debugging test

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
    // if tools is not specified, lock the toolbar in closed position
73
73
    locked: tools && tools.hasOwnProperty("locked") ? tools.locked : false
74
74
 
 
75
    onLockedChanged: print("locked = "+locked)
75
76
    Timer {
76
77
        id: hideTimer
77
78
        interval: toolbar.hideTimeout
78
79
        running: toolbar.opened && !toolbar.locked
79
 
        onTriggered: toolbar.close()
 
80
        onRunningChanged: print("timer running = "+running+ " with interval ")
 
81
        onTriggered: {
 
82
            console.log("triggered hide timer")
 
83
            toolbar.close()
 
84
        }
80
85
    }
81
86
 
82
87
    onOpenedChanged: {
 
88
        print("opened = "+opened)
 
89
 
83
90
        if (tools && tools.hasOwnProperty("opened")) {
84
91
            tools.opened = toolbar.opened;
85
92
        }