diff options
| author | Timotej Lazar <timotej.lazar@araneo.si> | 2021-06-14 19:09:53 +0200 |
|---|---|---|
| committer | Timotej Lazar <timotej.lazar@araneo.si> | 2021-06-14 19:13:14 +0200 |
| commit | 8d57bfb1aef3b71557bc408154ee028751fd688e (patch) | |
| tree | 22ee6eaa22a3cfc7dfd4f938be16a6e28d7eaf1f /Filter.qml | |
First commit
There was history before but now there is no more.
Diffstat (limited to 'Filter.qml')
| -rw-r--r-- | Filter.qml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Filter.qml b/Filter.qml new file mode 100644 index 0000000..e1b5f93 --- /dev/null +++ b/Filter.qml @@ -0,0 +1,34 @@ +// SPDX-License-Identifier: Unlicense + +import QtQuick 2.12 +import QtQuick.Controls 2.13 +import QtQuick.Layouts 1.6 + +GridLayout { + property var tags: [] + + function check(item) { + if (item.tag === tags.currentText) + return true + return false + } + + signal changed + + columns: 2 + + Label { text: qsTr('Tag') } + ComboBox { + model: tags + textRole: 'tag' + Layout.fillWidth: true + onCurrentTextChanged: changed() + } + + Label { + text: qsTr('Filters are not implemented yet! 😊') + wrapMode: Text.Wrap + Layout.fillWidth: true + Layout.columnSpan: 2 + } +} |
