30 property alias title: _titleLabel.text
43 property alias allowSearch: _searchButton.visible
53 property alias searchToolTip: _searchButton.text
64 readonly
property bool inSearchMode: state ==
"search" 78 property alias searchText: _searchField.text
90 readonly
property alias searchButton: _searchButton
93 function showTitle() {
105 function showSearchBar(text) {
106 if(typeof text ===
"string")
112 function toggleSearchState() {
121 onAllowSearchChanged: {
134 Layout.fillWidth:
true 135 Layout.fillHeight:
true 136 Layout.leftMargin: 16
142 visible: !_searchField.visible
147 horizontalAlignment:
Qt.AlignLeft
148 verticalAlignment:
Qt.AlignVCenter
149 anchors.right: parent.right
150 anchors.verticalCenter: parent.verticalCenter
151 height: Math.min(implicitHeight, parent.height)
158 text: qsTr(
"Search…")
159 onClicked: toggleSearchState()
167 target: _searchButton
169 icon.source:
"qrc:/de/skycoder42/qtmvvm/quick/icons/ic_search.svg" 182 script: _searchField.clear();
188 target: _searchButton
189 icon.name:
"gtk-close" 190 icon.source:
"qrc:/de/skycoder42/qtmvvm/quick/icons/ic_close.svg" 199 width: _labelContainer.width
203 script: _searchField.forceActiveFocus();
212 SequentialAnimation {
222 easing.type: Easing.InOutCubic
234 SequentialAnimation {
244 easing.type: Easing.InOutCubic
The QML import for the QtMvvmQuick QML module.