~mzanetti/unity8/fix-1648251

« back to all changes in this revision

Viewing changes to qml/Stages/AbstractStage.qml

  • Committer: Michael Zanetti
  • Date: 2016-10-13 11:02:11 UTC
  • mfrom: (2525.1.132 unity8)
  • Revision ID: michael.zanetti@canonical.com-20161013110211-tj2gly2dxaqj5t2e
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
import QtQuick 2.4
18
18
import Ubuntu.Components 1.3
 
19
import GlobalShortcut 1.0
19
20
import GSettings 1.0
20
21
 
21
22
FocusScope {
43
44
     // A Stage should paint a wallpaper etc over its full size but not use the margins for window placement
44
45
    property int leftMargin: 0
45
46
    property alias paintBackground: background.visible
 
47
    property bool oskEnabled: false
46
48
 
47
49
    // To be read from outside
48
50
    property var mainApp: null
53
55
                                      | Qt.InvertedPortraitOrientation
54
56
                                      | Qt.InvertedLandscapeOrientation
55
57
 
 
58
    property Item itemConfiningMouseCursor: null
 
59
 
 
60
 
56
61
    signal stageAboutToBeUnloaded
57
62
    signal itemSnapshotRequested(Item item)
58
63
 
77
82
        color: "#060606"
78
83
        anchors.fill: parent
79
84
    }
 
85
 
 
86
    // shared Alt+F4 functionality
 
87
    function closeFocusedDelegate() {} // to be implemented by stages
 
88
 
 
89
    GlobalShortcut {
 
90
        shortcut: Qt.AltModifier|Qt.Key_F4
 
91
        onTriggered: closeFocusedDelegate()
 
92
    }
80
93
}