Add Desktop, Floating and FullScreen dialog examples
This commit is contained in:
parent
2032816118
commit
0ce418c311
@ -172,7 +172,7 @@ PlasmaComponents.Page {
|
|||||||
}
|
}
|
||||||
PlasmaComponents.ButtonRow {
|
PlasmaComponents.ButtonRow {
|
||||||
id: buttonRow
|
id: buttonRow
|
||||||
spacing: _s
|
spacing: _s/2
|
||||||
PlasmaComponents.Button {
|
PlasmaComponents.Button {
|
||||||
width: _h
|
width: _h
|
||||||
text: "Top"
|
text: "Top"
|
||||||
@ -205,10 +205,34 @@ PlasmaComponents.Page {
|
|||||||
locationDialog.visible = !locationDialog.visible
|
locationDialog.visible = !locationDialog.visible
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
PlasmaComponents.Button {
|
||||||
|
text: "Desktop"
|
||||||
|
width: _h
|
||||||
|
onClicked: {
|
||||||
|
locationDialog.location = PlasmaCore.Plasma.Desktop;
|
||||||
|
locationDialog.visible = !locationDialog.visible
|
||||||
|
}
|
||||||
|
}
|
||||||
|
PlasmaComponents.Button {
|
||||||
|
text: "Floating"
|
||||||
|
width: _h
|
||||||
|
onClicked: {
|
||||||
|
locationDialog.location = PlasmaCore.Plasma.Floating;
|
||||||
|
locationDialog.visible = !locationDialog.visible
|
||||||
|
}
|
||||||
|
}
|
||||||
|
PlasmaComponents.Button {
|
||||||
|
text: "FullScreen"
|
||||||
|
width: _h
|
||||||
|
onClicked: {
|
||||||
|
locationDialog.location = PlasmaCore.Plasma.FullScreen;
|
||||||
|
locationDialog.visible = !locationDialog.visible
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
PlasmaCore.Dialog {
|
PlasmaCore.Dialog {
|
||||||
id: locationDialog
|
id: locationDialog
|
||||||
//visualParent: buttonRow
|
visualParent: buttonRow
|
||||||
mainItem: DialogContent {
|
mainItem: DialogContent {
|
||||||
id: dContent4
|
id: dContent4
|
||||||
onCloseMe: locationDialog.visible = false
|
onCloseMe: locationDialog.visible = false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user