Reformatted code a bit
This commit is contained in:
@@ -9,7 +9,8 @@ import QtQuick.Controls
|
|||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import KomplexHub
|
import KomplexHub
|
||||||
|
|
||||||
Item {
|
Item
|
||||||
|
{
|
||||||
property string searchTerm: ""
|
property string searchTerm: ""
|
||||||
property string icon: ""
|
property string icon: ""
|
||||||
property color color: "transparent"
|
property color color: "transparent"
|
||||||
@@ -17,15 +18,18 @@ Item {
|
|||||||
id: searchBarRootItem
|
id: searchBarRootItem
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
Rectangle {
|
Rectangle
|
||||||
|
{
|
||||||
color: searchBarRootItem.color
|
color: searchBarRootItem.color
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
RowLayout {
|
RowLayout
|
||||||
|
{
|
||||||
id: searchContainerLayout
|
id: searchContainerLayout
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
LineEdit {
|
LineEdit
|
||||||
|
{
|
||||||
id: searchEdit
|
id: searchEdit
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
@@ -40,7 +44,8 @@ Item {
|
|||||||
onAccepted: () => searchBarRootItem.searchTerm = text
|
onAccepted: () => searchBarRootItem.searchTerm = text
|
||||||
}
|
}
|
||||||
|
|
||||||
SquareButton {
|
SquareButton
|
||||||
|
{
|
||||||
id: searchButton
|
id: searchButton
|
||||||
|
|
||||||
Layout.fillHeight: searchEdit.height
|
Layout.fillHeight: searchEdit.height
|
||||||
|
|||||||
Reference in New Issue
Block a user