fix(StatusStickerList): add scrollbar to the grid view

and remove unused properties
This commit is contained in:
Lukáš Tinkl 2023-04-12 14:15:39 +02:00 committed by Lukáš Tinkl
parent 70fa0bf3b2
commit bfe44ca4a8
4 changed files with 10 additions and 8 deletions

View File

@ -1,25 +1,25 @@
import QtQuick 2.13
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.3
import QtGraphicalEffects 1.0
import StatusQ.Core 0.1
import StatusQ.Controls 0.1
import utils 1.0
import shared 1.0
import shared.panels 1.0
StatusGridView {
id: root
property string packId
property var stickerGrid
signal stickerClicked(string hash, string packId, string url)
ScrollBar.vertical: StatusScrollBar {}
visible: count > 0
anchors.fill: parent
cellWidth: 88
cellHeight: 88
model: stickerList
focus: true
signal stickerClicked(string hash, string packId, string url)
delegate: Item {
width: root.cellWidth
height: root.cellHeight

View File

@ -122,6 +122,7 @@ Item {
contentWrapper.anchors.topMargin: 0
contentWrapper.anchors.bottomMargin: 0
contentWrapper.anchors.rightMargin: 0
StatusStickerList {
id: stickerGridInPopup
anchors.fill: parent

View File

@ -56,6 +56,7 @@ ModalPopup {
contentWrapper.anchors.topMargin: 0
contentWrapper.anchors.bottomMargin: 0
contentWrapper.anchors.rightMargin: 0
StatusStickerList {
id: stickerGridInPopup
model: stickers

View File

@ -156,7 +156,6 @@ Popup {
id: stickersContainer
Layout.fillWidth: true
Layout.leftMargin: 4
Layout.rightMargin: 4
Layout.topMargin: 4
Layout.bottomMargin: 0
Layout.alignment: Qt.AlignTop | Qt.AlignLeft
@ -223,6 +222,7 @@ Popup {
StatusStickerList {
id: stickerGrid
objectName: "statusStickerPopupStickerGrid"
anchors.fill: parent
model: d.recentStickers
packId: stickerPackListView.selectedPackId
onStickerClicked: {