2020-09-29 08:41:27 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
2021-09-28 15:04:06 +00:00
|
|
|
|
2022-07-20 14:54:30 +00:00
|
|
|
import StatusQ.Core 0.1
|
2023-04-12 12:15:39 +00:00
|
|
|
import StatusQ.Controls 0.1
|
2022-07-20 14:54:30 +00:00
|
|
|
|
2021-09-28 15:04:06 +00:00
|
|
|
import utils 1.0
|
2021-10-27 21:27:49 +00:00
|
|
|
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
|
2023-04-12 12:15:39 +00:00
|
|
|
|
2023-04-12 10:31:35 +00:00
|
|
|
property string packId
|
2023-04-12 12:15:39 +00:00
|
|
|
signal stickerClicked(string hash, string packId, string url)
|
|
|
|
|
|
|
|
ScrollBar.vertical: StatusScrollBar {}
|
|
|
|
|
2020-09-29 08:41:27 +00:00
|
|
|
visible: count > 0
|
|
|
|
cellWidth: 88
|
|
|
|
cellHeight: 88
|
|
|
|
focus: true
|
2023-04-12 12:15:39 +00:00
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|