summaryrefslogtreecommitdiff
path: root/Filter.qml
blob: e1b5f93941947311d6942037c55e5687457bc776 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
    }
}