Skip to content

Commit 361a5e7

Browse files
committed
Add square property to itemMultiGrid and Bump version to 5.0
1 parent 690d7b6 commit 361a5e7

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

contents/ui/ItemMultiGridView.qml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,13 @@ PlasmaExtras.ScrollArea {
4242

4343
property bool grabFocus: false
4444
property bool showDescriptions: false
45+
property bool square: false
4546
property int iconSize: units.iconSizes.medium
4647

4748
property alias model: repeater.model
4849
property alias count: repeater.count
50+
property int cellWidth: parent.width
51+
property int cellHeight: iconSize + (2 * highlightItemSvg.margins.top)
4952

5053
//clip: true
5154
verticalScrollBarPolicy: Qt.ScrollBarAsNeeded
@@ -135,6 +138,7 @@ PlasmaExtras.ScrollArea {
135138
top: gridViewLabel.bottom
136139
topMargin: units.smallSpacing
137140
}
141+
square: itemMultiGrid.square
138142
showDescriptions: itemMultiGrid.showDescriptions
139143
increaseLeftSpacings: true
140144
//TODO >
@@ -144,8 +148,8 @@ PlasmaExtras.ScrollArea {
144148

145149
width: parent.width
146150
height: Math.ceil(count * cellHeight)
147-
cellWidth: parent.width
148-
cellHeight: itemMultiGrid.iconSize + (2 * highlightItemSvg.margins.top)//<>cellSize
151+
cellWidth: itemMultiGrid.cellWidth
152+
cellHeight: itemMultiGrid.cellHeight
149153
iconSize: itemMultiGrid.iconSize
150154
model: repeater.model.modelForRow(index)
151155

metadata.desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ X-Plasma-Provides=org.kde.plasma.launchermenu
1313
X-KDE-PluginInfo-Author=Prateek SU
1414
X-KDE-PluginInfo-Email=pankajsunal123@gmail.com
1515
X-KDE-PluginInfo-Name=menu11
16-
X-KDE-PluginInfo-Version=4.0
16+
X-KDE-PluginInfo-Version=5.0
1717
X-KDE-PluginInfo-Category=Application Launchers
1818
X-KDE-PluginInfo-Depends=
1919
X-KDE-PluginInfo-License=GPL-2.0+

metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"ServiceTypes": [
1818
"Plasma/Applet"
1919
],
20-
"Version": "4.0"
20+
"Version": "5.0"
2121
},
2222
"X-Plasma-API": "declarativeappletscript",
2323
"X-Plasma-MainScript": "ui/main.qml",

0 commit comments

Comments
 (0)