Programmeinstellungen-GUI entwurft
This commit is contained in:
7
.gitignore
vendored
7
.gitignore
vendored
@@ -208,7 +208,7 @@ dmypy.json
|
|||||||
# pytype static type analyzer
|
# pytype static type analyzer
|
||||||
.pytype/
|
.pytype/
|
||||||
.qtcreator/
|
.qtcreator/
|
||||||
pyqcrm.pyproject.user
|
*.pyproject.user
|
||||||
|
|
||||||
# Cython debug symbols
|
# Cython debug symbols
|
||||||
cython_debug/
|
cython_debug/
|
||||||
@@ -220,3 +220,8 @@ cython_debug/
|
|||||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||||
#.idea/
|
#.idea/
|
||||||
|
|
||||||
|
.*.bkp
|
||||||
|
|
||||||
|
.directory
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ ApplicationWindow
|
|||||||
TabBar
|
TabBar
|
||||||
{
|
{
|
||||||
id: bar
|
id: bar
|
||||||
anchors.fill: parent
|
Layout.fillWidth: true
|
||||||
TabButton
|
TabButton
|
||||||
{
|
{
|
||||||
text: qsTr("Benutzer erstellen")
|
text: qsTr("Benutzer erstellen")
|
||||||
@@ -46,40 +46,60 @@ ApplicationWindow
|
|||||||
|
|
||||||
StackLayout
|
StackLayout
|
||||||
{
|
{
|
||||||
anchors.fill: parent
|
Layout.fillWidth: true
|
||||||
|
Layout.fillHeight: true
|
||||||
currentIndex: bar.currentIndex
|
currentIndex: bar.currentIndex
|
||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
id: createUser
|
id: createUser
|
||||||
|
Layout.fillWidth: parent.width
|
||||||
GridLayout
|
Rectangle
|
||||||
{
|
{
|
||||||
id: createUserGrid
|
|
||||||
columns: 2
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
anchors.rightMargin: 9
|
||||||
|
anchors.leftMargin: 9
|
||||||
|
anchors.topMargin: 9
|
||||||
|
anchors.bottomMargin: 9
|
||||||
|
|
||||||
Label
|
GridLayout
|
||||||
{
|
{
|
||||||
text: qsTr("Benutzername:")
|
id: createUserGrid
|
||||||
}
|
columns: 2
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
TextField
|
Label
|
||||||
{
|
{
|
||||||
id: benutzerName
|
text: qsTr("Benutzername:")
|
||||||
placeholderText: qsTr("Hier Benutzername eingeben")
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
TextField
|
||||||
{
|
{
|
||||||
text: qsTr("Passwort:")
|
id: benutzerName
|
||||||
}
|
placeholderText: qsTr("Hier Benutzername eingeben")
|
||||||
|
Layout.fillWidth: true
|
||||||
|
height: 3
|
||||||
|
}
|
||||||
|
|
||||||
TextField
|
Label
|
||||||
{
|
{
|
||||||
id: password
|
text: qsTr("Passwort:")
|
||||||
echoMode: TextInput.Password
|
Layout.alignment: Qt.AlignRight
|
||||||
placeholderText: qsTr("Hier Passwort eingeben")
|
}
|
||||||
|
|
||||||
|
TextField
|
||||||
|
{
|
||||||
|
id: password
|
||||||
|
echoMode: TextInput.Password
|
||||||
|
placeholderText: qsTr("Hier Passwort eingeben")
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
|
|
||||||
|
Item
|
||||||
|
{
|
||||||
|
Layout.fillHeight: true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -87,75 +107,100 @@ ApplicationWindow
|
|||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
id: settingsDB
|
id: settingsDB
|
||||||
|
Layout.fillWidth: parent.width
|
||||||
|
Rectangle
|
||||||
GridLayout
|
|
||||||
{
|
{
|
||||||
id: dbGrid
|
anchors.rightMargin: 9
|
||||||
columns: 2
|
anchors.leftMargin: 9
|
||||||
|
anchors.topMargin: 9
|
||||||
|
anchors.bottomMargin: 9
|
||||||
|
anchors.fill: parent
|
||||||
Label
|
GridLayout
|
||||||
{
|
{
|
||||||
text: qsTr("DB-Host:")
|
id: dbGrid
|
||||||
}
|
columns: 2
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: qsTr("DB-Port:")
|
text: qsTr("DB-Port:")
|
||||||
}
|
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
|
||||||
|
}
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: qsTr("DB-Name:")
|
text: qsTr("DB-Name:")
|
||||||
}
|
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
|
||||||
|
}
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: qsTr("DB-Benutzername:")
|
text: qsTr("DB-Benutzername:")
|
||||||
}
|
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
|
||||||
|
}
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: qsTr("DB-Passwort:")
|
text: qsTr("DB-Passwort:")
|
||||||
}
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
Item
|
||||||
|
{
|
||||||
|
Layout.fillHeight: true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RowLayout
|
RowLayout
|
||||||
{
|
{
|
||||||
|
Item
|
||||||
|
{
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
|
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
id: cancelBtn
|
id: cancelBtn
|
||||||
|
|||||||
Reference in New Issue
Block a user