Programmeinstellungen-GUI entwurft

This commit is contained in:
2024-10-25 19:35:14 +02:00
parent 3aa9130819
commit 8955cc875b
2 changed files with 126 additions and 76 deletions

7
.gitignore vendored
View File

@@ -208,7 +208,7 @@ dmypy.json
# pytype static type analyzer
.pytype/
.qtcreator/
pyqcrm.pyproject.user
*.pyproject.user
# Cython debug symbols
cython_debug/
@@ -220,3 +220,8 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
.*.bkp
.directory

View File

@@ -32,7 +32,7 @@ ApplicationWindow
TabBar
{
id: bar
anchors.fill: parent
Layout.fillWidth: true
TabButton
{
text: qsTr("Benutzer erstellen")
@@ -46,12 +46,21 @@ ApplicationWindow
StackLayout
{
anchors.fill: parent
Layout.fillWidth: true
Layout.fillHeight: true
currentIndex: bar.currentIndex
Item
{
id: createUser
Layout.fillWidth: parent.width
Rectangle
{
anchors.fill: parent
anchors.rightMargin: 9
anchors.leftMargin: 9
anchors.topMargin: 9
anchors.bottomMargin: 9
GridLayout
{
@@ -62,17 +71,21 @@ ApplicationWindow
Label
{
text: qsTr("Benutzername:")
Layout.alignment: Qt.AlignRight
}
TextField
{
id: benutzerName
placeholderText: qsTr("Hier Benutzername eingeben")
Layout.fillWidth: true
height: 3
}
Label
{
text: qsTr("Passwort:")
Layout.alignment: Qt.AlignRight
}
TextField
@@ -80,6 +93,13 @@ ApplicationWindow
id: password
echoMode: TextInput.Password
placeholderText: qsTr("Hier Passwort eingeben")
Layout.fillWidth: true
}
Item
{
Layout.fillHeight: true
}
}
}
}
@@ -87,62 +107,75 @@ ApplicationWindow
Item
{
id: settingsDB
Layout.fillWidth: parent.width
Rectangle
{
anchors.rightMargin: 9
anchors.leftMargin: 9
anchors.topMargin: 9
anchors.bottomMargin: 9
anchors.fill: parent
GridLayout
{
id: dbGrid
columns: 2
anchors.fill: parent
Label
{
text: qsTr("DB-Host:")
Layout.alignment: Qt.AlignRight
}
TextField
{
id: dbHost
placeholderText: qsTr("Hier Host eingeben")
Layout.fillWidth: true
}
Label
{
text: qsTr("DB-Port:")
Layout.alignment: Qt.AlignRight
}
TextField
{
id: dbPort
placeholderText: qsTr("Hier DB-Port eingeben")
Layout.fillWidth: true
}
Label
{
text: qsTr("DB-Name:")
Layout.alignment: Qt.AlignRight
}
TextField
{
id: dbName
placeholderText: qsTr("Hier DB-Name eingeben")
Layout.fillWidth: true
}
Label
{
text: qsTr("DB-Benutzername:")
Layout.alignment: Qt.AlignRight
}
TextField
{
id: dbUserName
placeholderText: qsTr("Hier DB-Benutzername eingeben")
Layout.fillWidth: true
}
Label
{
text: qsTr("DB-Passwort:")
Layout.alignment: Qt.AlignRight
}
TextField
@@ -150,12 +183,24 @@ ApplicationWindow
id: dbPassword
echoMode: TextInput.Password
placeholderText: qsTr("Hier DB-Passwort eingeben")
Layout.fillWidth: true
}
Item
{
Layout.fillHeight: true
}
}
}
}
}
RowLayout
{
Item
{
Layout.fillWidth: true
}
Button
{
id: cancelBtn