Fix the PlasmaComponents.Sheet
*location property is now using the PlasmaCore.Types *DialogStatus => PlasmaCore.DialogStatus *windowFlags property => flags property
This commit is contained in:
parent
66d65f1b12
commit
7916c9d766
@ -128,10 +128,6 @@ Item {
|
||||
*/
|
||||
function open()
|
||||
{
|
||||
var pos = dialog.popupPosition(null, Qt.AlignCenter)
|
||||
dialog.x = pos.x
|
||||
dialog.y = pos.y
|
||||
|
||||
dialog.visible = true
|
||||
dialog.requestActivate()
|
||||
}
|
||||
@ -174,8 +170,8 @@ Item {
|
||||
|
||||
PlasmaCore.Dialog {
|
||||
id: dialog
|
||||
windowFlags: Qt.Dialog
|
||||
location: 4 //FIXME: replace with BottomEdge when we have an enum reachable from everywhere in core
|
||||
flags: Qt.Dialog
|
||||
location: PlasmaCore.Types.BottomEdge
|
||||
|
||||
|
||||
//onFaderClicked: root.clickedOutside()
|
||||
@ -185,9 +181,9 @@ Item {
|
||||
visible: false
|
||||
onVisibleChanged: {
|
||||
if (visible) {
|
||||
status = DialogStatus.Open
|
||||
status = PlasmaComponents.DialogStatus.Open
|
||||
} else {
|
||||
status = DialogStatus.Closed
|
||||
status = PlasmaComponents.DialogStatus.Closed
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user