From 014e497cc5ad91e3af716b7d0f3dd784c48814656ded1e10f5a2ce64e3ab62ac Mon Sep 17 00:00:00 2001 From: linuxero Date: Sat, 26 Oct 2024 22:54:23 +0200 Subject: [PATCH] Rectangle in Programmeinstellungen.qml entfernt --- gui/Programmeinstellungen.qml | 208 ++++++++++++++++------------------ 1 file changed, 96 insertions(+), 112 deletions(-) diff --git a/gui/Programmeinstellungen.qml b/gui/Programmeinstellungen.qml index 3f53a23..878acc5 100644 --- a/gui/Programmeinstellungen.qml +++ b/gui/Programmeinstellungen.qml @@ -49,57 +49,50 @@ ApplicationWindow Layout.fillWidth: true Layout.fillHeight: true currentIndex: bar.currentIndex + Layout.margins: 9 Item { id: createUser Layout.fillWidth: parent.width - Rectangle + + GridLayout { + id: createUserGrid + columns: 2 anchors.fill: parent - anchors.rightMargin: 9 - anchors.leftMargin: 9 - anchors.topMargin: 9 - anchors.bottomMargin: 9 - - GridLayout + Layout.margins: 9 + Label { - id: createUserGrid - columns: 2 - anchors.fill: parent + text: qsTr("Benutzername:") + Layout.alignment: Qt.AlignRight + } - Label - { - text: qsTr("Benutzername:") - Layout.alignment: Qt.AlignRight - } + TextField + { + id: benutzerName + placeholderText: qsTr("Hier Benutzername eingeben") + Layout.fillWidth: true + height: 3 + } - TextField - { - id: benutzerName - placeholderText: qsTr("Hier Benutzername eingeben") - Layout.fillWidth: true - height: 3 - } + Label + { + text: qsTr("Passwort:") + Layout.alignment: Qt.AlignRight + } - Label - { - text: qsTr("Passwort:") - Layout.alignment: Qt.AlignRight - } + TextField + { + id: password + echoMode: TextInput.Password + placeholderText: qsTr("Hier Passwort eingeben") + Layout.fillWidth: true + } - TextField - { - id: password - echoMode: TextInput.Password - placeholderText: qsTr("Hier Passwort eingeben") - Layout.fillWidth: true - } - - Item - { - Layout.fillHeight: true - } + Item + { + Layout.fillHeight: true } } } @@ -108,98 +101,89 @@ ApplicationWindow { id: settingsDB Layout.fillWidth: parent.width - Rectangle + + GridLayout { - anchors.rightMargin: 9 - anchors.leftMargin: 9 - anchors.topMargin: 9 - anchors.bottomMargin: 9 + id: dbGrid + columns: 2 anchors.fill: parent - GridLayout + + Label { - id: dbGrid - columns: 2 - anchors.fill: parent - Label - { - text: qsTr("DB-Host:") - Layout.alignment: Qt.AlignRight - } + text: qsTr("DB-Host:") + Layout.alignment: Qt.AlignRight + } - TextField - { - id: dbHost - placeholderText: qsTr("Hier Host eingeben") - Layout.fillWidth: true - } + TextField + { + id: dbHost + placeholderText: qsTr("Hier Host eingeben") + Layout.fillWidth: true + } - Label - { - text: qsTr("DB-Port:") - Layout.alignment: Qt.AlignRight - } + Label + { + text: qsTr("DB-Port:") + Layout.alignment: Qt.AlignRight + } - TextField - { - id: dbPort - placeholderText: qsTr("Hier DB-Port eingeben") - Layout.fillWidth: true - } + TextField + { + id: dbPort + placeholderText: qsTr("Hier DB-Port eingeben") + Layout.fillWidth: true + } - Label - { - text: qsTr("DB-Name:") - Layout.alignment: Qt.AlignRight - } + Label + { + text: qsTr("DB-Name:") + Layout.alignment: Qt.AlignRight + } - TextField - { - id: dbName - placeholderText: qsTr("Hier DB-Name eingeben") - Layout.fillWidth: true - } + TextField + { + id: dbName + placeholderText: qsTr("Hier DB-Name eingeben") + Layout.fillWidth: true + } - Label - { - text: qsTr("DB-Benutzername:") - Layout.alignment: Qt.AlignRight - } + Label + { + text: qsTr("DB-Benutzername:") + Layout.alignment: Qt.AlignRight + } - TextField - { - id: dbUserName - placeholderText: qsTr("Hier DB-Benutzername eingeben") - Layout.fillWidth: true - } + TextField + { + id: dbUserName + placeholderText: qsTr("Hier DB-Benutzername eingeben") + Layout.fillWidth: true + } - Label - { - text: qsTr("DB-Passwort:") - Layout.alignment: Qt.AlignRight - } + Label + { + text: qsTr("DB-Passwort:") + Layout.alignment: Qt.AlignRight + } - TextField - { - id: dbPassword - echoMode: TextInput.Password - placeholderText: qsTr("Hier DB-Passwort eingeben") - Layout.fillWidth: true - } + TextField + { + id: dbPassword + echoMode: TextInput.Password + placeholderText: qsTr("Hier DB-Passwort eingeben") + Layout.fillWidth: true + } - Item - { - Layout.fillHeight: true - } + Item + { + Layout.fillHeight: true } } } } RowLayout { - Layout.leftMargin: 9 - Layout.rightMargin: 9 - Layout.topMargin: 9 - Layout.bottomMargin: 9 + Layout.margins: 9 Item {