[finishedq] Port QML back to using Config object
This commit is contained in:
parent
5b376b41bf
commit
0d7c1ec130
@ -18,8 +18,6 @@ import org.kde.kirigami 2.7 as Kirigami
|
|||||||
import QtGraphicalEffects 1.0
|
import QtGraphicalEffects 1.0
|
||||||
import QtQuick.Window 2.3
|
import QtQuick.Window 2.3
|
||||||
|
|
||||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
|
||||||
|
|
||||||
Page {
|
Page {
|
||||||
|
|
||||||
id: finished
|
id: finished
|
||||||
@ -62,27 +60,17 @@ Page {
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
spacing: 6
|
spacing: 6
|
||||||
|
|
||||||
PlasmaCore.DataSource {
|
|
||||||
id: executer
|
|
||||||
engine: "executable"
|
|
||||||
onNewData: {executer.disconnectSource(sourceName);}
|
|
||||||
}
|
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
id: button
|
id: button
|
||||||
text: qsTr("Close Installer")
|
text: qsTr("Close Installer")
|
||||||
icon.name: "application-exit"
|
icon.name: "application-exit"
|
||||||
onClicked: { ViewManager.quit(); }
|
onClicked: { ViewManager.quit(); }
|
||||||
//onClicked: console.log("close calamares");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
text: qsTr("Restart System")
|
text: qsTr("Restart System")
|
||||||
icon.name: "system-reboot"
|
icon.name: "system-reboot"
|
||||||
//onClicked: { config.doRestart(); }
|
onClicked: { config.doRestart(); }
|
||||||
onClicked: {
|
|
||||||
executer.connectSource("systemctl -i reboot");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user