summaryrefslogtreecommitdiff
path: root/components/ListWithIconForm.ui.qml
blob: 5e03180623e25f108921f7d8cc1c085ba5f5e0bf (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
45
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15

Item {
	property alias button: listButton

    width: 360
    height: 48
    Layout.minimumWidth: 360
    Layout.minimumHeight: 48

    Row {
        id: row
        anchors.fill: parent
        spacing: 8
        padding: 0

        Label {
            id: listLabel
            text: qsTr("List label with icon")
            anchors.verticalCenter: parent.verticalCenter
            anchors.left: parent.left
            font.letterSpacing: 0.15
            font.weight: Font.Medium
            anchors.leftMargin: 16
            font.pointSize: 16
        }

        ToolButton {
            id: listButton
            width: 24
            height: 24
            text: qsTr("List Tool Button")
            anchors.verticalCenter: parent.verticalCenter
            anchors.right: parent.right
            padding: 0
            display: AbstractButton.IconOnly
            highlighted: false
            anchors.rightMargin: 16
            icon.name: "addIcon"
            icon.source: "../icons/add-24px.svg"
        }
    }
}