COnfiguration and systray
This commit is contained in:
@@ -2,16 +2,113 @@ import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Controls
|
||||
|
||||
Item
|
||||
ColumnLayout
|
||||
{
|
||||
property string name: "company"
|
||||
property alias name: companyName
|
||||
property alias street: street
|
||||
property alias house: houseno
|
||||
property alias zipcode: zipcode
|
||||
property alias city: city
|
||||
anchors.fill: parent
|
||||
anchors.topMargin: 50
|
||||
|
||||
Label
|
||||
RowLayout
|
||||
{
|
||||
text: qsTr("Das Unternehmen")
|
||||
anchors.centerIn: parent
|
||||
font.pixelSize: 57
|
||||
font.bold: true
|
||||
Layout.fillWidth: true
|
||||
Label
|
||||
{
|
||||
text: qsTr("Namen")
|
||||
// font.pixelSize: 57
|
||||
// font.bold: true
|
||||
}
|
||||
|
||||
TextField
|
||||
{
|
||||
id: companyName
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
}
|
||||
|
||||
RowLayout
|
||||
{
|
||||
Layout.fillWidth: true
|
||||
Label
|
||||
{
|
||||
text: qsTr("Straße")
|
||||
// font.pixelSize: 57
|
||||
// font.bold: true
|
||||
}
|
||||
|
||||
TextField
|
||||
{
|
||||
id: street
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
Label
|
||||
{
|
||||
text: qsTr("Haus-Nr.")
|
||||
// font.pixelSize: 57
|
||||
// font.bold: true
|
||||
}
|
||||
|
||||
TextField
|
||||
{
|
||||
id: houseno
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
RowLayout
|
||||
{
|
||||
Layout.fillWidth: true
|
||||
Label
|
||||
{
|
||||
text: qsTr("PLZ")
|
||||
// font.pixelSize: 57
|
||||
// font.bold: true
|
||||
}
|
||||
|
||||
ComboBox
|
||||
{
|
||||
id: zipcode
|
||||
Layout.fillWidth: true
|
||||
editable: true
|
||||
model: address_model
|
||||
textRole: "display"
|
||||
popup.height: 300
|
||||
popup.y: zipcode.y + 5 - (zipcode.height * 2)
|
||||
//currentIndex: -1
|
||||
onCurrentIndexChanged: city.currentIndex = zipcode.currentIndex
|
||||
validator: RegularExpressionValidator
|
||||
{
|
||||
regularExpression: /([0-9]{1,5})/
|
||||
}
|
||||
}
|
||||
|
||||
Label
|
||||
{
|
||||
text: qsTr("Stadt")
|
||||
// font.pixelSize: 57
|
||||
// font.bold: true
|
||||
}
|
||||
|
||||
ComboBox
|
||||
{
|
||||
id: city
|
||||
Layout.fillWidth: true
|
||||
editable: true
|
||||
model: address_model
|
||||
textRole: "city"
|
||||
popup.height: 300
|
||||
popup.y: zipcode.y + 5 - (zipcode.height * 2)
|
||||
currentIndex: -1
|
||||
}
|
||||
}
|
||||
|
||||
Item
|
||||
{
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user