port back to Window

avoid some crash?
This commit is contained in:
Marco Martin 2015-06-13 18:49:11 -07:00
parent 33ba92fee3
commit 38c860f451

View file

@ -22,11 +22,8 @@ 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
PlasmaCore.Dialog { Window {
id: window id: window
//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
@ -53,11 +50,11 @@ PlasmaCore.Dialog {
} }
} }
mainItem: MouseArea { MouseArea {
id: mouseArea id: mouseArea
y: 0 y: 0
Layout.minimumWidth: Screen.width width: Screen.width
Layout.minimumHeight: Screen.height height: Screen.height
//clip: true //clip: true
state: "closed" state: "closed"
drag.filterChildren: true drag.filterChildren: true