mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 13:56:10 +00:00
7544bd6fb5
Fixes: - https://github.com/status-im/status-desktop/issues/6964 Depends on: - https://github.com/status-im/status-go/pull/2795 - https://github.com/status-im/status-jenkins-lib/pull/44 Signed-off-by: Jakub Sokołowski <jakub@status.im>
41 lines
912 B
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)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|