magpie/qml/Application/Assets.qml

56 lines
1.1 KiB
QML
Raw Normal View History

// SPDX-FileCopyrightText: 2023 Yury Gubich <blue@macaw.me>
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick
import QtQuick.Controls
2024-01-18 22:14:33 +00:00
import QtQuick.Layouts
2024-01-18 22:14:33 +00:00
import magpie.Models as Models
import magpie.Components as Components
2024-01-17 21:57:34 +00:00
Item {
2024-01-17 21:57:34 +00:00
signal add
2024-01-18 22:14:33 +00:00
ColumnLayout {
id: column
2024-01-17 21:57:34 +00:00
anchors.fill: parent
Label {
2024-01-18 22:14:33 +00:00
id: label
2024-01-17 21:57:34 +00:00
text: "This is Assets screen"
font {
pixelSize: 24
bold: true
}
}
ListView {
2024-01-18 22:14:33 +00:00
id: listView
Layout.fillHeight: true
Layout.fillWidth: true
model: Models.Assets
delegate: Components.AssetLine {
height: 20
2024-01-17 21:57:34 +00:00
}
}
}
Button {
anchors {
bottom: parent.bottom
right: parent.right
bottomMargin: 20
rightMargin: 20
}
onClicked: add()
width: 50
height: 50
icon {
name: "list-add"
height: 50
width: 50
}
}
}