fix(StatusStickerList): add scrollbar to the grid view
and remove unused properties
This commit is contained in:
parent
70fa0bf3b2
commit
bfe44ca4a8
|
@ -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
|
||||
|
|
|
@ -122,6 +122,7 @@ Item {
|
|||
|
||||
contentWrapper.anchors.topMargin: 0
|
||||
contentWrapper.anchors.bottomMargin: 0
|
||||
contentWrapper.anchors.rightMargin: 0
|
||||
StatusStickerList {
|
||||
id: stickerGridInPopup
|
||||
anchors.fill: parent
|
||||
|
|
|
@ -56,6 +56,7 @@ ModalPopup {
|
|||
|
||||
contentWrapper.anchors.topMargin: 0
|
||||
contentWrapper.anchors.bottomMargin: 0
|
||||
contentWrapper.anchors.rightMargin: 0
|
||||
StatusStickerList {
|
||||
id: stickerGridInPopup
|
||||
model: stickers
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue