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
|
|
|
|
2022-07-20 14:54:30 +00:00
|
|
|
import StatusQ.Core 0.1
|
|
|
|
|
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
|
|
|
|
2022-07-20 14:54:30 +00:00
|
|
|
StatusGridView {
|
2020-09-29 08:41:27 +00:00
|
|
|
id: root
|
2021-12-08 21:20:43 +00:00
|
|
|
property int packId: -1
|
|
|
|
property var stickerGrid
|
2020-09-29 08:41:27 +00:00
|
|
|
visible: count > 0
|
|
|
|
anchors.fill: parent
|
|
|
|
cellWidth: 88
|
|
|
|
cellHeight: 88
|
|
|
|
model: stickerList
|
|
|
|
focus: true
|
2022-08-10 19:18:20 +00:00
|
|
|
signal stickerClicked(string hash, int packId, string url)
|
2020-09-29 08:41:27 +00:00
|
|
|
delegate: Item {
|
2021-12-08 21:20:43 +00:00
|
|
|
width: root.cellWidth
|
|
|
|
height: root.cellHeight
|
2020-09-29 08:41:27 +00:00
|
|
|
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
|
2022-02-14 23:27:23 +00:00
|
|
|
source: url
|
2020-12-14 07:01:09 +00:00
|
|
|
onClicked: {
|
2022-08-10 19:18:20 +00:00
|
|
|
root.stickerClicked(hash, packId, url)
|
2020-09-29 08:41:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|