Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/logout/LogoutButton.qml
- This file was copied to lookandfeel/contents/logout/timer.js.
Show All 17 Lines | |||||
18 | ***************************************************************************/ | 18 | ***************************************************************************/ | ||
19 | 19 | | |||
20 | import QtQuick 2.2 | 20 | import QtQuick 2.2 | ||
21 | import QtQuick.Layouts 1.2 | 21 | import QtQuick.Layouts 1.2 | ||
22 | 22 | | |||
23 | import org.kde.plasma.core 2.0 as PlasmaCore | 23 | import org.kde.plasma.core 2.0 as PlasmaCore | ||
24 | 24 | | |||
25 | import "../components" | 25 | import "../components" | ||
26 | import "timer.js" as AutoTriggerTimer | ||||
26 | 27 | | |||
27 | ActionButton { | 28 | ActionButton { | ||
28 | property var action | 29 | property var action | ||
29 | onClicked: action() | 30 | onClicked: action() | ||
30 | Layout.alignment: Qt.AlignTop | 31 | Layout.alignment: Qt.AlignTop | ||
31 | iconSize: units.iconSizes.huge | 32 | iconSize: units.iconSizes.huge | ||
32 | opacity: activeFocus || containsMouse ? 1 : 0.5 | 33 | opacity: activeFocus || containsMouse ? 1 : 0.5 | ||
33 | font.underline: false | 34 | font.underline: false | ||
34 | Behavior on opacity { | 35 | Behavior on opacity { | ||
35 | OpacityAnimator { | 36 | OpacityAnimator { | ||
36 | duration: units.longDuration | 37 | duration: units.longDuration | ||
37 | easing.type: Easing.InOutQuad | 38 | easing.type: Easing.InOutQuad | ||
38 | } | 39 | } | ||
39 | } | 40 | } | ||
40 | Keys.onPressed: countDownTimer.running = false | 41 | Keys.onPressed: AutoTriggerTimer.cancelAutoTrigger(); | ||
41 | } | 42 | } |