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