GUI anpassen und ApplicatioWindow übergeben
This commit is contained in:
@@ -21,13 +21,6 @@ import QtQuick.Controls.Material
|
|||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
width: 640
|
|
||||||
height: 480
|
|
||||||
visible: true
|
|
||||||
|
|
||||||
Material.theme: Material.Dark
|
|
||||||
Material.accent: Material.BlueGrey
|
|
||||||
|
|
||||||
ColumnLayout
|
ColumnLayout
|
||||||
{
|
{
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
@@ -72,6 +65,8 @@ Item
|
|||||||
{
|
{
|
||||||
id: createUserGrid
|
id: createUserGrid
|
||||||
columns: 2
|
columns: 2
|
||||||
|
columnSpacing: 5
|
||||||
|
rowSpacing: 9
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
Layout.margins: 9
|
Layout.margins: 9
|
||||||
Label
|
Label
|
||||||
@@ -118,6 +113,8 @@ Item
|
|||||||
{
|
{
|
||||||
id: dbGrid
|
id: dbGrid
|
||||||
columns: 2
|
columns: 2
|
||||||
|
columnSpacing: 5
|
||||||
|
rowSpacing: 9
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
Label
|
Label
|
||||||
@@ -378,4 +375,9 @@ Item
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Component.onCompleted:
|
||||||
|
{
|
||||||
|
appLoader.window.title = "PYQCRM - Einstellungen"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
20
gui/main.qml
20
gui/main.qml
@@ -5,19 +5,25 @@ import QtQuick.Controls.Material
|
|||||||
|
|
||||||
ApplicationWindow
|
ApplicationWindow
|
||||||
{
|
{
|
||||||
id: window
|
id: appWindow
|
||||||
width: 640
|
width: Screen.width * .6
|
||||||
height: 480
|
height: Screen.height * .6
|
||||||
visible: true
|
visible: true
|
||||||
Material.theme: Material.Dark
|
Material.theme: Material.Dark
|
||||||
Material.accent: Material.BlueGrey
|
Material.accent: Material.BlueGrey
|
||||||
title: bad_config? "Pyqcrm Einstellungen":"Pyqcrm"
|
title: "PYQCRM"
|
||||||
Loader
|
Loader
|
||||||
{
|
{
|
||||||
id: mainWindow
|
id: appLoader
|
||||||
|
anchors.fill: parent
|
||||||
|
// {
|
||||||
|
// left: parent.left
|
||||||
|
// right: parent.right
|
||||||
|
// top: parent.top
|
||||||
|
// bottom: parent.bottom
|
||||||
|
// }
|
||||||
source: bad_config? "firststart.qml":"start.qml"
|
source: bad_config? "firststart.qml":"start.qml"
|
||||||
|
property alias window: appWindow
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user