blob: 1a0cfc0a06b9f0b8e973faa9d32cd15cfba9a530 (
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
35
36
37
38
39
40
41
42
43
44
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick
import QtQuick.Layouts
Item {
id: root
height: 30
property string text: "Filename"
property bool selected: false
signal clicked()
RowLayout {
id: fileRow
width: 100
Item {
id: item5
width: 10
height: 10
}
Rectangle {
id: rectangle2
width: 10
height: 10
color: selected ? "#80c342" : "#25a6e2"
}
Text {
id: filename
text: root.text
font.pointSize: 12
}
}
MouseArea {
id: mouseArea
width: 200
height: 30
onClicked: root.clicked()
}
}
|