diff --git a/gui/Start.qml b/gui/Start.qml new file mode 100644 index 0000000..7f6e12a --- /dev/null +++ b/gui/Start.qml @@ -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 + + // } + + +} diff --git a/gui/TopBar.qml b/gui/TopBar.qml new file mode 100644 index 0000000..ecc79ec --- /dev/null +++ b/gui/TopBar.qml @@ -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" + } + } + } + + + + + diff --git a/gui/main.qml b/gui/main.qml index 6ce6770..5d2a717 100644 --- a/gui/main.qml +++ b/gui/main.qml @@ -22,7 +22,7 @@ ApplicationWindow // top: parent.top // bottom: parent.bottom // } - source: bad_config? "firststart.qml":"start.qml" + source: bad_config? "firststart.qml":"Start.qml" property alias window: appWindow } diff --git a/gui/start.qml b/gui/start.qml deleted file mode 100644 index 43696a2..0000000 --- a/gui/start.qml +++ /dev/null @@ -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 - - } - - -} diff --git a/pyqcrm.pyproject b/pyqcrm.pyproject index cc0c03c..9068891 100644 --- a/pyqcrm.pyproject +++ b/pyqcrm.pyproject @@ -5,8 +5,9 @@ "lib/__init__.py", "main.py", "gui/main.qml", - "gui/start.qml", + "gui/Start.qml", "js/qmldict.js", - "lib/Vermasseln.py" + "lib/Vermasseln.py", + "gui/TopBar.qml" ] }