magpie/qml/Application/Assets.qml

58 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-20 21:17:21 +00:00
import magpie
2024-01-18 22:14:33 +00:00
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
2024-01-20 21:17:21 +00:00
model: Magpie.assets
spacing: 5
2024-01-18 22:14:33 +00:00
delegate: Components.AssetLine {
height: 20
2024-01-20 21:17:21 +00:00
width: listView.width
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
}
}
}