~unity-team/unity8/req-445

« back to all changes in this revision

Viewing changes to qml/Components/Dialogs.qml

  • Committer: MichaƂ Sawicz
  • Date: 2015-10-20 09:38:31 UTC
  • mfrom: (2001.2.1 pdPowerDialog)
  • Revision ID: michal.sawicz@canonical.com-20151020093831-kcw8z2s3i6maq3ju
lp:~lukas-kde/unity8/platformPlugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
import Unity.Session 0.1
21
21
import Ubuntu.Components 1.1
22
22
import GlobalShortcut 1.0
 
23
import Unity.Platform 1.0
23
24
import "../Greeter"
24
25
 
25
26
Item {
46
47
 
47
48
    GlobalShortcut { // reboot/shutdown dialog
48
49
        shortcut: Qt.Key_PowerDown
49
 
        active: root.usageScenario === "desktop"
 
50
        active: Platform.isPC
50
51
        onTriggered: root.unitySessionService.RequestShutdown()
51
52
    }
52
53
 
53
54
    GlobalShortcut { // reboot/shutdown dialog
54
55
        shortcut: Qt.Key_PowerOff
55
 
        active: root.usageScenario === "desktop"
 
56
        active: Platform.isPC
56
57
        onTriggered: root.unitySessionService.RequestShutdown()
57
58
    }
58
59