2020-09-29 10:41:27 +02:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import QtGraphicalEffects 1.0
|
2021-09-28 18:04:06 +03:00
|
|
|
|
2022-07-20 17:54:30 +03:00
|
|
|
import StatusQ.Core 0.1
|
|
|
|
|
2021-09-28 18:04:06 +03:00
|
|
|
import utils 1.0
|
2021-10-28 00:27:49 +03:00
|
|
|
import shared 1.0
|
|
|
|
import shared.panels 1.0
|
2020-09-29 10:41:27 +02:00
|
|
|
|
2022-07-20 17:54:30 +03:00
|
|
|
StatusGridView {
|
2020-09-29 10:41:27 +02:00
|
|
|
id: root
|
2021-12-08 23:20:43 +02:00
|
|
|
property int packId: -1
|
|
|
|
property var stickerGrid
|
2020-09-29 10:41:27 +02:00
|
|
|
visible: count > 0
|
|
|
|
anchors.fill: parent
|
|
|
|
cellWidth: 88
|
|
|
|
cellHeight: 88
|
|
|
|
model: stickerList
|
|
|
|
focus: true
|
2022-08-10 15:18:20 -04:00
|
|
|
signal stickerClicked(string hash, int packId, string url)
|
2020-09-29 10:41:27 +02:00
|
|
|
delegate: Item {
|
2021-12-08 23:20:43 +02:00
|
|
|
width: root.cellWidth
|
|
|
|
height: root.cellHeight
|
2020-09-29 10:41:27 +02:00
|
|
|
Column {
|
|
|
|
anchors.fill: parent
|
|
|
|
anchors.topMargin: 4
|
|
|
|
anchors.leftMargin: 4
|
2020-12-14 18:01:09 +11:00
|
|
|
ImageLoader {
|
2020-09-29 10:41:27 +02:00
|
|
|
width: 80
|
|
|
|
height: 80
|
2022-02-14 19:27:23 -04:00
|
|
|
source: url
|
2020-12-14 18:01:09 +11:00
|
|
|
onClicked: {
|
2022-08-10 15:18:20 -04:00
|
|
|
root.stickerClicked(hash, packId, url)
|
2020-09-29 10:41:27 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|