searchbar
This commit is contained in:
@@ -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 {
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
text: "tables"
|
||||
Item
|
||||
{
|
||||
|
||||
SearchBar
|
||||
{
|
||||
id:searchBar
|
||||
anchors.margins: 9
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
12
gui/main.qml
12
gui/main.qml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user