Rectangle in Programmeinstellungen.qml entfernt

This commit is contained in:
2024-10-26 22:54:23 +02:00
parent aad1c44e6b
commit 014e497cc5

View File

@@ -49,57 +49,50 @@ ApplicationWindow
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
currentIndex: bar.currentIndex currentIndex: bar.currentIndex
Layout.margins: 9
Item Item
{ {
id: createUser id: createUser
Layout.fillWidth: parent.width Layout.fillWidth: parent.width
Rectangle
GridLayout
{ {
id: createUserGrid
columns: 2
anchors.fill: parent anchors.fill: parent
anchors.rightMargin: 9 Layout.margins: 9
anchors.leftMargin: 9 Label
anchors.topMargin: 9
anchors.bottomMargin: 9
GridLayout
{ {
id: createUserGrid text: qsTr("Benutzername:")
columns: 2 Layout.alignment: Qt.AlignRight
anchors.fill: parent }
Label TextField
{ {
text: qsTr("Benutzername:") id: benutzerName
Layout.alignment: Qt.AlignRight placeholderText: qsTr("Hier Benutzername eingeben")
} Layout.fillWidth: true
height: 3
}
TextField Label
{ {
id: benutzerName text: qsTr("Passwort:")
placeholderText: qsTr("Hier Benutzername eingeben") Layout.alignment: Qt.AlignRight
Layout.fillWidth: true }
height: 3
}
Label TextField
{ {
text: qsTr("Passwort:") id: password
Layout.alignment: Qt.AlignRight echoMode: TextInput.Password
} placeholderText: qsTr("Hier Passwort eingeben")
Layout.fillWidth: true
}
TextField Item
{ {
id: password Layout.fillHeight: true
echoMode: TextInput.Password
placeholderText: qsTr("Hier Passwort eingeben")
Layout.fillWidth: true
}
Item
{
Layout.fillHeight: true
}
} }
} }
} }
@@ -108,98 +101,89 @@ ApplicationWindow
{ {
id: settingsDB id: settingsDB
Layout.fillWidth: parent.width Layout.fillWidth: parent.width
Rectangle
GridLayout
{ {
anchors.rightMargin: 9 id: dbGrid
anchors.leftMargin: 9 columns: 2
anchors.topMargin: 9
anchors.bottomMargin: 9
anchors.fill: parent anchors.fill: parent
GridLayout
Label
{ {
id: dbGrid text: qsTr("DB-Host:")
columns: 2 Layout.alignment: Qt.AlignRight
anchors.fill: parent }
Label
{
text: qsTr("DB-Host:")
Layout.alignment: Qt.AlignRight
}
TextField TextField
{ {
id: dbHost id: dbHost
placeholderText: qsTr("Hier Host eingeben") placeholderText: qsTr("Hier Host eingeben")
Layout.fillWidth: true Layout.fillWidth: true
} }
Label Label
{ {
text: qsTr("DB-Port:") text: qsTr("DB-Port:")
Layout.alignment: Qt.AlignRight Layout.alignment: Qt.AlignRight
} }
TextField TextField
{ {
id: dbPort id: dbPort
placeholderText: qsTr("Hier DB-Port eingeben") placeholderText: qsTr("Hier DB-Port eingeben")
Layout.fillWidth: true Layout.fillWidth: true
} }
Label Label
{ {
text: qsTr("DB-Name:") text: qsTr("DB-Name:")
Layout.alignment: Qt.AlignRight Layout.alignment: Qt.AlignRight
} }
TextField TextField
{ {
id: dbName id: dbName
placeholderText: qsTr("Hier DB-Name eingeben") placeholderText: qsTr("Hier DB-Name eingeben")
Layout.fillWidth: true Layout.fillWidth: true
} }
Label Label
{ {
text: qsTr("DB-Benutzername:") text: qsTr("DB-Benutzername:")
Layout.alignment: Qt.AlignRight Layout.alignment: Qt.AlignRight
} }
TextField TextField
{ {
id: dbUserName id: dbUserName
placeholderText: qsTr("Hier DB-Benutzername eingeben") placeholderText: qsTr("Hier DB-Benutzername eingeben")
Layout.fillWidth: true Layout.fillWidth: true
} }
Label Label
{ {
text: qsTr("DB-Passwort:") text: qsTr("DB-Passwort:")
Layout.alignment: Qt.AlignRight Layout.alignment: Qt.AlignRight
} }
TextField TextField
{ {
id: dbPassword id: dbPassword
echoMode: TextInput.Password echoMode: TextInput.Password
placeholderText: qsTr("Hier DB-Passwort eingeben") placeholderText: qsTr("Hier DB-Passwort eingeben")
Layout.fillWidth: true Layout.fillWidth: true
} }
Item Item
{ {
Layout.fillHeight: true Layout.fillHeight: true
}
} }
} }
} }
} }
RowLayout RowLayout
{ {
Layout.leftMargin: 9 Layout.margins: 9
Layout.rightMargin: 9
Layout.topMargin: 9
Layout.bottomMargin: 9
Item Item
{ {