status-desktop/ui/imports/shared/status/StatusStickerList.qml
Alexandra Betouni 0eb40287fa refactor: removed dynamic scoping from shared module
Properties and functions moved to Global:
- toastMessage
- openProfilePopup()
- getProfileImage()
- popupOpened

Closes #4248
2022-02-01 11:46:39 +01:00

40 lines
912 B
QML

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