2
* Copyright (C) 2013 Michael Zanetti <michael_zanetti@gmx.net>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; version 3.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
import Ubuntu.Components 0.1
19
import Ubuntu.Components.Popups 0.1
26
property alias hour: hourScroller.currentIndex
27
property alias minute: minuteScroller.currentIndex
29
signal accepted(int hours, int minutes)
35
property date now: new Date()
47
width: parent.width / 2
48
labelText: qsTr("Hour")
51
currentIndex: priv.now.getHours()
59
width: parent.width / 2
60
labelText: qsTr("Minute")
64
currentIndex: priv.now.getMinutes()
73
PopupUtils.close(root)
75
width: (parent.width - parent.spacing) / 2
82
root.accepted(root.hour, root.minute)
83
PopupUtils.close(root)
85
width: (parent.width - parent.spacing) / 2
b'\\ No newline at end of file'