advotracker_qml: advotracker variant with Qt/Qml GUI
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
74
advotracker_qml/resources/pages/SearchToolBar.qml
Executable file
74
advotracker_qml/resources/pages/SearchToolBar.qml
Executable file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* AdvoTracker - Hotline tackingtool for Advocats
|
||||
*
|
||||
* Copyright (c) 2017 Ralf Zerres <ralf.zerres@networkx.de
|
||||
*
|
||||
* AdvoTracker is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation; either version 2.1 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* AdvoTracker is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with AdvoTracker; If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import QtQuick 2.10
|
||||
import QtQuick.Layouts 1.3
|
||||
import QtQuick.Controls 2.3
|
||||
import QtGraphicalEffects 1.0
|
||||
import QtQuick.Controls.Material 2.3
|
||||
|
||||
// AdvoTracker Module
|
||||
import de.networkx.AdvoTracker 1.0 as Nwx
|
||||
|
||||
Pane {
|
||||
property alias text: textSearch.displayText
|
||||
leftPadding: 0
|
||||
topPadding: 0
|
||||
bottomPadding: 0
|
||||
rightPadding: 0
|
||||
|
||||
ToolBar {
|
||||
//height: 56
|
||||
Material.foreground: "white"
|
||||
//Material.background: "grey"
|
||||
Layout.fillWidth: true
|
||||
anchors.fill: parent
|
||||
RowLayout {
|
||||
id: rowLayout
|
||||
//anchors.fill: parent
|
||||
Layout.fillWidth: true
|
||||
spacing: 8
|
||||
anchors.margins: 4
|
||||
anchors.right: parent.right
|
||||
anchors.fill: parent
|
||||
/*
|
||||
Label {
|
||||
id: labelMenu
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: rowLayout.spacing
|
||||
text: Nwx.MdiFont.Icon.menu
|
||||
font.pixelSize: 32
|
||||
}
|
||||
*/
|
||||
Label {
|
||||
id: labelSearch
|
||||
anchors.right: textSearch.left
|
||||
anchors.rightMargin: rowLayout.spacing
|
||||
text: Nwx.MdiFont.Icon.magnify
|
||||
font.pixelSize: 28
|
||||
}
|
||||
Nwx.TextField {
|
||||
id: textSearch
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: rowLayout.spacing
|
||||
placeholderText: qsTr("Search ...")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user