..
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 | import QtQuick 2.0
import QtQuick.Window 2.2
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
/*
* Provides a side panel positioned at right of the screen
*/
PlasmaCore.Dialog {
id: rootWindow
location: PlasmaCore.Types.RightEdge
flags: Qt.FramelessWindowHint
hideOnWindowDeactivate: true
x: Screen.desktopAvailableWidth - width
y: 1
Component.onCompleted: {
mainItem.width = Qt.binding(function () {
return Screen.desktopAvailableHeight / 2
})
mainItem.height = Qt.binding(function () {
return Screen.desktopAvailableHeight
})
}
function display() {
rootWindow.show()
rootWindow.requestActivate()
}
}
|
|