2020-09-29 08:41:27 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import QtGraphicalEffects 1.0
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2021-10-27 21:27:49 +00:00
|
|
|
import shared 1.0
|
|
|
|
import shared.panels 1.0
|
2020-09-29 08:41:27 +00:00
|
|
|
|
|
|
|
GridView {
|
|
|
|
id: root
|
|
|
|
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: stickerGrid.cellWidth
|
|
|
|
height: stickerGrid.cellHeight
|
|
|
|
Column {
|
|
|
|
anchors.fill: parent
|
|
|
|
anchors.topMargin: 4
|
|
|
|
anchors.leftMargin: 4
|
2020-12-14 07:01:09 +00:00
|
|
|
ImageLoader {
|
2020-09-29 08:41:27 +00:00
|
|
|
width: 80
|
|
|
|
height: 80
|
|
|
|
source: "https://ipfs.infura.io/ipfs/" + url
|
2020-12-14 07:01:09 +00:00
|
|
|
onClicked: {
|
|
|
|
root.stickerClicked(hash, packId)
|
2020-09-29 08:41:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|