This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
powersync-app/guh-control/ui/SystemInfoPage.qml
2017-11-06 21:55:35 +01:00

49 lines
1.0 KiB
QML

import QtQuick 2.8
import QtQuick.Controls 2.1
import QtQuick.Controls.Material 2.1
import QtQuick.Layouts 1.3
import "components"
import Guh 1.0
Page {
id: root
header: GuhHeader {
text: "System information"
backButtonVisible: true
onBackPressed: pageStack.pop()
}
ColumnLayout {
anchors.fill: parent
anchors.margins: app.margins
Label {
Layout.fillWidth: true
text: "Connected to:"
color: Material.accent
}
RowLayout {
Layout.fillWidth: true
Label {
Layout.fillWidth: true
text: Engine.connection.url
}
Button {
text: "Disconnect"
onClicked: {
settings.lastConnectedHost = "";
Engine.connection.disconnect();
}
}
}
Item {
Layout.fillWidth: true
Layout.fillHeight: true
}
}
}