searchbar

This commit is contained in:
2024-11-06 12:18:20 +01:00
parent 9b30f5e127
commit a8bb0623cc
6 changed files with 65 additions and 3 deletions

View File

@@ -1,5 +1,42 @@
import QtQuick
import QtQuick.Controls
Item
{
TextField
{
id: searchBar
placeholderText: qsTr("Suche")
leftPadding: 3
rightPadding: 3
width: 300
Button
{
icon.source: "../images/search.svg"
icon.color: "olive"
anchors.right: parent.right
height: parent.height
flat: true
}
}
Button
{
icon.source: "../images/filter.svg"
icon.color: "olive"
anchors.left: searchBar.right
height: searchBar.height
flat: true
}
Item {
}

View File

@@ -1,6 +1,11 @@
import QtQuick
Item {
text: "tables"
Item
{
SearchBar
{
id:searchBar
anchors.margins: 9
}
}

View File

@@ -16,10 +16,13 @@ import QtQuick.Layouts
anchors
{
top: parent.top
left: parent.left
}
Button
@@ -29,6 +32,7 @@ import QtQuick.Layouts
text: qsTr("Dashboard")
implicitWidth: dashBoard.implicitContentWidth + 10
}
Button
@@ -79,6 +83,8 @@ import QtQuick.Layouts
icon.source: "../images/menu.svg"
icon.color: "red"
flat: true
Layout.rightMargin: 9
}

View File

@@ -14,7 +14,14 @@ ApplicationWindow
title: "PYQCRM"
TopBar
{
id:topBar
anchors
{
rightMargin: 9
leftMargin: 9
}
visible: bad_config? false: true
}
@@ -31,6 +38,11 @@ ApplicationWindow
right: parent.right
top: topBar.bottom
bottom: parent.bottom
topMargin: 0
rightMargin: 9
leftMargin: 9
}
source: bad_config? "firststart.qml": "Dashboard.qml"
property alias window: appWindow