mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
port to PlasmaCore.Dialog
This commit is contained in:
parent
b1de6bcb24
commit
4573e2badc
1 changed files with 9 additions and 6 deletions
|
|
@ -18,12 +18,15 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
|
import QtQuick.Layouts 1.1
|
||||||
import QtQuick.Window 2.2
|
import QtQuick.Window 2.2
|
||||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||||
|
|
||||||
Window {
|
PlasmaCore.Dialog {
|
||||||
id: window
|
id: window
|
||||||
flags: Qt.WindowDoesNotAcceptFocus
|
//flags: Qt.X11BypassWindowManagerHint
|
||||||
|
backgroundHints: PlasmaCore.Dialog.NoBackground
|
||||||
|
location: PlasmaCore.Types.TopEdge
|
||||||
|
|
||||||
property int offset: 0
|
property int offset: 0
|
||||||
property int overShoot: units.gridUnit * 2
|
property int overShoot: units.gridUnit * 2
|
||||||
|
|
@ -50,12 +53,12 @@ Window {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
mainItem: MouseArea {
|
||||||
id: mouseArea
|
id: mouseArea
|
||||||
y: 0
|
y: 0
|
||||||
width: window.width
|
Layout.minimumWidth: Screen.width
|
||||||
height: window.height - y
|
Layout.minimumHeight: Screen.height
|
||||||
clip: true
|
//clip: true
|
||||||
state: "closed"
|
state: "closed"
|
||||||
drag.filterChildren: true
|
drag.filterChildren: true
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue