Commit 7b5e5552 authored by Ismael Asensio's avatar Ismael Asensio
Browse files

switchers/thumbnail_grid: Remove leftovers from previous refactor

Remove some unused properties and fix warnings on calls to a
non-existent function
parent b16b11aa
Pipeline #203611 passed with stage
in 3 minutes and 2 seconds
......@@ -28,14 +28,6 @@ KWin.Switcher {
x: tabBox.screenGeometry.x + tabBox.screenGeometry.width * 0.5 - dialogMainItem.width * 0.5
y: tabBox.screenGeometry.y + tabBox.screenGeometry.height * 0.5 - dialogMainItem.height * 0.5
onVisibleChanged: {
if (visible) {
dialogMainItem.calculateColumnCount();
} else {
thumbnailGridView.highCount = 0;
}
}
mainItem: Item {
id: dialogMainItem
......@@ -60,8 +52,6 @@ KWin.Switcher {
property int gridRows: Math.ceil(thumbnailGridView.count / gridColumns)
property int optimalWidth: thumbnailGridView.cellWidth * gridColumns
property int optimalHeight: thumbnailGridView.cellHeight * gridRows
property bool canStretchX: false
property bool canStretchY: false
width: Math.min(Math.max(thumbnailGridView.cellWidth, optimalWidth), maxWidth)
height: Math.min(Math.max(thumbnailGridView.cellHeight, optimalHeight), maxHeight)
......@@ -120,15 +110,6 @@ KWin.Switcher {
keyNavigationWraps: true
highlightMoveDuration: 0
// Allow expansion on increasing count
property int highCount: 0
onCountChanged: {
if (highCount < count) {
dialogMainItem.calculateColumnCount();
highCount = count;
}
}
delegate: Item {
id: thumbnailGridItem
width: thumbnailGridView.cellWidth
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment