fixedloader
This commit is contained in:
34
gui/main.qml
34
gui/main.qml
@@ -1,6 +1,6 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Controls.Material
|
||||
|
||||
|
||||
|
||||
ApplicationWindow
|
||||
@@ -9,25 +9,31 @@ ApplicationWindow
|
||||
width: Screen.width * .6
|
||||
height: Screen.height * .6
|
||||
visible: true
|
||||
Material.theme: Material.Dark
|
||||
Material.accent: Material.BlueGrey
|
||||
Material.primary: Material.Grey
|
||||
|
||||
|
||||
title: "PYQCRM"
|
||||
TopBar
|
||||
{
|
||||
id:topBar
|
||||
|
||||
visible: if (bad_config) visible = false
|
||||
}
|
||||
Item
|
||||
{
|
||||
id: mainView
|
||||
}
|
||||
Loader
|
||||
{
|
||||
id: appLoader
|
||||
anchors.fill: parent
|
||||
// {
|
||||
// left: parent.left
|
||||
// right: parent.right
|
||||
// top: parent.top
|
||||
// bottom: parent.bottom
|
||||
// }
|
||||
source: bad_config? "firststart.qml":"Start.qml"
|
||||
anchors
|
||||
{
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
top: topBar.bottom
|
||||
bottom: parent.bottom
|
||||
}
|
||||
source: bad_config? "firststart.qml":"Dashboard.qml"
|
||||
property alias window: appWindow
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user