Resources for QML assets
This commit is contained in:
@@ -22,6 +22,7 @@ Item {
|
||||
//icon.source: "../images/addbusiness.svg"
|
||||
icon.source: "qrc:/images/addbusiness.svg"
|
||||
icon.color: "olive"
|
||||
//width: icon.width
|
||||
anchors.right: parent.right
|
||||
flat: true
|
||||
onClicked: appLoader.source = "AddCustomer.qml"
|
||||
@@ -132,18 +133,18 @@ Item {
|
||||
// return newWidth
|
||||
// }
|
||||
|
||||
Timer
|
||||
{
|
||||
running: true
|
||||
interval: 3000
|
||||
repeat: true
|
||||
onTriggered:
|
||||
{
|
||||
//testTable.columnWidths[2] = 150
|
||||
console.log("Timing..")
|
||||
testTable.forceLayout();
|
||||
}
|
||||
}
|
||||
// Timer
|
||||
// {
|
||||
// running: true
|
||||
// interval: 3000
|
||||
// repeat: true
|
||||
// onTriggered:
|
||||
// {
|
||||
// //testTable.columnWidths[2] = 150
|
||||
// console.log("Timing..")
|
||||
// testTable.forceLayout();
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import "qrc:/gui"
|
||||
|
||||
ColumnLayout
|
||||
{
|
||||
|
||||
@@ -1,91 +0,0 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
|
||||
RowLayout
|
||||
{
|
||||
id: topBar
|
||||
spacing: 0
|
||||
height: 35
|
||||
width: parent.width
|
||||
anchors
|
||||
{
|
||||
top: parent.top
|
||||
left: parent.left
|
||||
|
||||
|
||||
}
|
||||
|
||||
Button
|
||||
{
|
||||
id: dashBoard
|
||||
flat: true
|
||||
text: qsTr("Dashboard")
|
||||
implicitWidth: dashBoard.implicitContentWidth + 10
|
||||
onClicked:
|
||||
{
|
||||
appLoader.source = "Dashboard.qml"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Button
|
||||
{
|
||||
id: kunden
|
||||
flat: true
|
||||
text: qsTr("Kunden")
|
||||
implicitWidth: kunden.implicitContentWidth + 10
|
||||
onClicked:
|
||||
{
|
||||
appLoader.source = "CustomerTables.qml"
|
||||
}
|
||||
}
|
||||
|
||||
Button
|
||||
{
|
||||
id: objekt
|
||||
flat: true
|
||||
text: qsTr("Objekt")
|
||||
implicitWidth: objekt.implicitContentWidth + 10
|
||||
|
||||
}
|
||||
|
||||
Button
|
||||
{
|
||||
id: mitarbeiter
|
||||
flat: true
|
||||
text: qsTr("Mitarbeiter")
|
||||
implicitWidth: mitarbeiter.implicitContentWidth + 10
|
||||
onClicked:
|
||||
{
|
||||
appLoader.source = "EmployeTables.qml"
|
||||
}
|
||||
}
|
||||
|
||||
Button
|
||||
{
|
||||
id: abrechnung
|
||||
flat: true
|
||||
text: qsTr("Abrechnung")
|
||||
implicitWidth: abrechnung.implicitContentWidth + 10
|
||||
}
|
||||
|
||||
Item
|
||||
{
|
||||
id: hspacer
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
Button
|
||||
{
|
||||
id: atajos
|
||||
icon.source: "qrc:/images/menu.svg"
|
||||
icon.color: "red"
|
||||
flat: true
|
||||
Layout.rightMargin: 9
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Controls
|
||||
import "qrc:/gui"
|
||||
|
||||
ApplicationWindow
|
||||
{
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
module TopBar
|
||||
TopBar 1.0 TopBar.qml
|
||||
Reference in New Issue
Block a user