Guitest
This commit is contained in:
23
gui/Start.qml
Normal file
23
gui/Start.qml
Normal 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
81
gui/TopBar.qml
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user