This commit is contained in:
2024-11-04 13:56:09 +01:00
parent 1fd67a6ee2
commit fb5b23efbb
5 changed files with 108 additions and 21 deletions

23
gui/Start.qml Normal file
View File

@@ -0,0 +1,23 @@
import QtQuick
import QtQuick.Controls
Item
{
anchors.fill: parent
TopBar
{
id:topBar
}
// Component.onCompleted:
// {
// appLoader.window.title = "pyqcrm"
// appLoader.window.height = Screen.height * .5
// appLoader.window.width = Screen.width * .5
// }
}

81
gui/TopBar.qml Normal file
View File

@@ -0,0 +1,81 @@
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
// Item
// {
// id: topBar
// anchors
// {
// top: parent.top
// left: parent.left
// right: parent.right
// }
// height: 30
RowLayout
{
id: topBar
height: 35
width: parent / 4
anchors
{
top: parent.top
left: parent.left
right: parent.right
}
Button
{
// width: parent.width/7
Layout.preferredWidth: parent.width/5
Text
{
text: "Dashboard"
id: dashBoard
}
}
Button
{
Layout.preferredWidth: parent.width/5
Text
{
text: "Kunden"
}
}
Button
{
Layout.preferredWidth: parent.width/5
Text
{
text: "Objekt"
}
}
Button
{
Layout.preferredWidth: parent.width/5
Text
{
text: "Mitarbeiter"
}
}
Button
{
Layout.preferredWidth: parent.width/5
Text
{
text: "Abrechnung"
}
}
}

View File

@@ -22,7 +22,7 @@ ApplicationWindow
// top: parent.top // top: parent.top
// bottom: parent.bottom // bottom: parent.bottom
// } // }
source: bad_config? "firststart.qml":"start.qml" source: bad_config? "firststart.qml":"Start.qml"
property alias window: appWindow property alias window: appWindow
} }

View File

@@ -1,18 +0,0 @@
import QtQuick
import QtQuick.Controls
Item
{
anchors.fill: parent
Component.onCompleted:
{
appLoader.window.title = "pyqcrm"
appLoader.window.height = Screen.height * .5
appLoader.window.width = Screen.width * .5
}
}

View File

@@ -5,8 +5,9 @@
"lib/__init__.py", "lib/__init__.py",
"main.py", "main.py",
"gui/main.qml", "gui/main.qml",
"gui/start.qml", "gui/Start.qml",
"js/qmldict.js", "js/qmldict.js",
"lib/Vermasseln.py" "lib/Vermasseln.py",
"gui/TopBar.qml"
] ]
} }