For Schleife in Firststart.qml
This commit is contained in:
@@ -37,16 +37,6 @@ Item
|
|||||||
{
|
{
|
||||||
text: qsTr("Datenbank einrichten")
|
text: qsTr("Datenbank einrichten")
|
||||||
}
|
}
|
||||||
|
|
||||||
TabButton
|
|
||||||
{
|
|
||||||
text: qsTr("TEST TAB") //NUR TESTTAB UM LAYOUT OPTIONEN ZU TESTEN
|
|
||||||
}
|
|
||||||
|
|
||||||
TabButton
|
|
||||||
{
|
|
||||||
text: qsTr("TEST TAB 2")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
StackLayout
|
StackLayout
|
||||||
@@ -81,6 +71,7 @@ Item
|
|||||||
placeholderText: qsTr("Hier Benutzername eingeben")
|
placeholderText: qsTr("Hier Benutzername eingeben")
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
height: 3
|
height: 3
|
||||||
|
property string name: "username"
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
Label
|
||||||
@@ -95,6 +86,7 @@ Item
|
|||||||
echoMode: TextInput.Password
|
echoMode: TextInput.Password
|
||||||
placeholderText: qsTr("Hier Passwort eingeben")
|
placeholderText: qsTr("Hier Passwort eingeben")
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
property string name: "password"
|
||||||
}
|
}
|
||||||
|
|
||||||
Item
|
Item
|
||||||
@@ -167,6 +159,7 @@ Item
|
|||||||
id: dbUserName
|
id: dbUserName
|
||||||
placeholderText: qsTr("Hier DB-Benutzername eingeben")
|
placeholderText: qsTr("Hier DB-Benutzername eingeben")
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
Label
|
||||||
@@ -189,166 +182,8 @@ Item
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//ANFANG TESTCODE KEINE IDS VERGEBEN
|
|
||||||
Item
|
|
||||||
{
|
|
||||||
|
|
||||||
Frame
|
|
||||||
{
|
|
||||||
anchors.fill: parent
|
|
||||||
anchors.margins: 9
|
|
||||||
|
|
||||||
GridLayout
|
|
||||||
{
|
|
||||||
|
|
||||||
columns: 2
|
|
||||||
anchors.fill: parent
|
|
||||||
Label
|
|
||||||
{
|
|
||||||
text: qsTr("DB-Host:")
|
|
||||||
Layout.alignment: Qt.AlignRight
|
|
||||||
}
|
|
||||||
|
|
||||||
TextField
|
|
||||||
{
|
|
||||||
|
|
||||||
placeholderText: qsTr("Hier Host eingeben")
|
|
||||||
Layout.fillWidth: true
|
|
||||||
}
|
|
||||||
|
|
||||||
Label
|
|
||||||
{
|
|
||||||
text: qsTr("DB-Port:")
|
|
||||||
Layout.alignment: Qt.AlignRight
|
|
||||||
}
|
|
||||||
|
|
||||||
TextField
|
|
||||||
{
|
|
||||||
|
|
||||||
placeholderText: qsTr("Hier DB-Port eingeben")
|
|
||||||
Layout.fillWidth: true
|
|
||||||
}
|
|
||||||
|
|
||||||
Label
|
|
||||||
{
|
|
||||||
text: qsTr("DB-Name:")
|
|
||||||
Layout.alignment: Qt.AlignRight
|
|
||||||
}
|
|
||||||
|
|
||||||
TextField
|
|
||||||
{
|
|
||||||
|
|
||||||
placeholderText: qsTr("Hier DB-Name eingeben")
|
|
||||||
Layout.fillWidth: true
|
|
||||||
}
|
|
||||||
|
|
||||||
Label
|
|
||||||
{
|
|
||||||
text: qsTr("DB-Benutzername:")
|
|
||||||
Layout.alignment: Qt.AlignRight
|
|
||||||
}
|
|
||||||
|
|
||||||
TextField
|
|
||||||
{
|
|
||||||
|
|
||||||
placeholderText: qsTr("Hier DB-Benutzername eingeben")
|
|
||||||
Layout.fillWidth: true
|
|
||||||
}
|
|
||||||
|
|
||||||
Label
|
|
||||||
{
|
|
||||||
text: qsTr("DB-Passwort:")
|
|
||||||
Layout.alignment: Qt.AlignRight
|
|
||||||
}
|
|
||||||
|
|
||||||
TextField
|
|
||||||
{
|
|
||||||
|
|
||||||
echoMode: TextInput.Password
|
|
||||||
placeholderText: qsTr("Hier DB-Passwort eingeben")
|
|
||||||
Layout.fillWidth: true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Item
|
|
||||||
{
|
|
||||||
GridLayout
|
|
||||||
{
|
|
||||||
anchors.fill: parent
|
|
||||||
anchors.margins: 9
|
|
||||||
columns: 2
|
|
||||||
|
|
||||||
Label
|
|
||||||
{
|
|
||||||
text: qsTr("DB-Host:")
|
|
||||||
Layout.alignment: Qt.AlignRight
|
|
||||||
}
|
|
||||||
|
|
||||||
TextField
|
|
||||||
{
|
|
||||||
placeholderText: qsTr("Hier Host eingeben")
|
|
||||||
Layout.fillWidth: true
|
|
||||||
}
|
|
||||||
|
|
||||||
Label
|
|
||||||
{
|
|
||||||
text: qsTr("DB-Port:")
|
|
||||||
Layout.alignment: Qt.AlignRight
|
|
||||||
}
|
|
||||||
|
|
||||||
TextField
|
|
||||||
{
|
|
||||||
placeholderText: qsTr("Hier DB-Port eingeben")
|
|
||||||
Layout.fillWidth: true
|
|
||||||
}
|
|
||||||
|
|
||||||
Label
|
|
||||||
{
|
|
||||||
text: qsTr("DB-Name:")
|
|
||||||
Layout.alignment: Qt.AlignRight
|
|
||||||
}
|
|
||||||
|
|
||||||
TextField
|
|
||||||
{
|
|
||||||
placeholderText: qsTr("Hier DB-Name eingeben")
|
|
||||||
Layout.fillWidth: true
|
|
||||||
}
|
|
||||||
|
|
||||||
Label
|
|
||||||
{
|
|
||||||
text: qsTr("DB-Benutzername:")
|
|
||||||
Layout.alignment: Qt.AlignRight
|
|
||||||
}
|
|
||||||
|
|
||||||
TextField
|
|
||||||
{
|
|
||||||
placeholderText: qsTr("Hier DB-Benutzername eingeben")
|
|
||||||
Layout.fillWidth: true
|
|
||||||
}
|
|
||||||
|
|
||||||
Label
|
|
||||||
{
|
|
||||||
text: qsTr("DB-Passwort:")
|
|
||||||
Layout.alignment: Qt.AlignRight
|
|
||||||
}
|
|
||||||
|
|
||||||
TextField
|
|
||||||
{
|
|
||||||
echoMode: TextInput.Password
|
|
||||||
placeholderText: qsTr("Hier DB-Passwort eingeben")
|
|
||||||
Layout.fillWidth: true
|
|
||||||
}
|
|
||||||
|
|
||||||
Label
|
|
||||||
{
|
|
||||||
//Spacer Label
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//ENDE TESTCODE
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout
|
RowLayout
|
||||||
{
|
{
|
||||||
Layout.margins: 9
|
Layout.margins: 9
|
||||||
@@ -371,6 +206,18 @@ Item
|
|||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
config.createUser(benutzerName.text)
|
config.createUser(benutzerName.text)
|
||||||
|
for (var i = 0; i < createUserGrid.children.length; i++)
|
||||||
|
{
|
||||||
|
// console.log(createUserGrid.children[i].name)
|
||||||
|
// console.log(createUserGrid.children[i].text)
|
||||||
|
|
||||||
|
if (createUserGrid.children[i].name)
|
||||||
|
{
|
||||||
|
console.log(createUserGrid.children[i].name);
|
||||||
|
console.log(createUserGrid.children[i].text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ class ConfigLoader(QObject):
|
|||||||
|
|
||||||
@Slot(str)
|
@Slot(str)
|
||||||
def createUser(self, username):
|
def createUser(self, username):
|
||||||
print(username)
|
pass
|
||||||
|
|
||||||
def __configLoad(self):
|
def __configLoad(self):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user