status-desktop/ui/imports/shared/status/StatusStickerList.qml

41 lines
912 B
QML

import QtQuick 2.13
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.3
import QtGraphicalEffects 1.0
import StatusQ.Core 0.1
import utils 1.0
import shared 1.0
import shared.panels 1.0
StatusGridView {
id: root
property int packId: -1
property var stickerGrid
visible: count > 0
anchors.fill: parent
cellWidth: 88
cellHeight: 88
model: stickerList
focus: true
signal stickerClicked(string hash, int packId, string url)
delegate: Item {
width: root.cellWidth
height: root.cellHeight
Column {
anchors.fill: parent
anchors.topMargin: 4
anchors.leftMargin: 4
ImageLoader {
width: 80
height: 80
source: url
onClicked: {
root.stickerClicked(hash, packId, url)
}
}
}
}
}