mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 01:34:46 +00:00
taskswitcher: Remove QQC2.Control from Task to avoid touch conflicts
This commit is contained in:
parent
a75349f93e
commit
cccde09f3d
1 changed files with 6 additions and 13 deletions
|
|
@ -169,21 +169,15 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
// app preview
|
// app preview
|
||||||
QQC2.Control {
|
Rectangle {
|
||||||
id: appView
|
id: appView
|
||||||
Layout.preferredWidth: delegate.previewWidth
|
Layout.preferredWidth: delegate.previewWidth
|
||||||
Layout.preferredHeight: delegate.previewHeight
|
Layout.preferredHeight: delegate.previewHeight
|
||||||
Layout.maximumWidth: delegate.previewWidth
|
Layout.maximumWidth: delegate.previewWidth
|
||||||
Layout.maximumHeight: delegate.previewHeight
|
Layout.maximumHeight: delegate.previewHeight
|
||||||
|
|
||||||
// prevent thumbnails from "leaking" out of the control
|
color: PlasmaCore.Theme.backgroundColor
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
leftPadding: 0
|
|
||||||
rightPadding: 0
|
|
||||||
topPadding: 0
|
|
||||||
bottomPadding: 0
|
|
||||||
|
|
||||||
transform: Scale {
|
transform: Scale {
|
||||||
origin.x: item.width / 2
|
origin.x: item.width / 2
|
||||||
origin.y: item.height / 2
|
origin.y: item.height / 2
|
||||||
|
|
@ -191,15 +185,14 @@ Item {
|
||||||
yScale: delegate.scale
|
yScale: delegate.scale
|
||||||
}
|
}
|
||||||
|
|
||||||
background: Rectangle {
|
Item {
|
||||||
color: PlasmaCore.Theme.backgroundColor
|
|
||||||
}
|
|
||||||
|
|
||||||
contentItem: Item {
|
|
||||||
id: item
|
id: item
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
// app icon (behind window preview in-case it doesn't load)
|
// app icon (behind window preview in-case it doesn't load)
|
||||||
TaskIcon {
|
TaskIcon {
|
||||||
|
// decrease the opacity faster
|
||||||
|
opacity: delegate.opacity
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue