Verified Commit 8e32f4f0 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

applets/kickoff: Remove unused property & replace menu status magic numbers

parent 7c64eb97
Pipeline #197218 passed with stage
in 3 minutes and 18 seconds
......@@ -9,6 +9,7 @@
import QtQuick 2.15
import QtQml 2.15
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PC2
import org.kde.plasma.components 3.0 as PC3
import org.kde.kirigami 2.16 as Kirigami
......@@ -127,7 +128,7 @@ EmptyPage {
imagePath: "widgets/viewitem"
prefix: "hover"
visible: plasmoid.rootItem.contentArea !== root
|| ActionMenu.menu.status !== 1
|| ActionMenu.menu.status !== PC2.DialogStatus.Open
}
delegate: KickoffItemDelegate {
......
......@@ -25,7 +25,6 @@ import QtQml 2.15
import QtQuick.Layouts 1.15
import QtQuick.Templates 2.15 as T
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PC2
import org.kde.plasma.components 3.0 as PC3
import org.kde.kirigami 2.16 as Kirigami
import "code/tools.js" as Tools
......@@ -46,7 +45,6 @@ T.ItemDelegate {
readonly property bool hasActionList: model && (model.favoriteId !== null || ("hasActionList" in model && model.hasActionList === true))
property var actionList: null
property bool isSearchResult: false
readonly property bool menuClosed: ActionMenu.menu.status === PC2.DialogStatus.Closed
property bool dragEnabled: enabled && !isCategory
&& plasmoid.immutability !== PlasmaCore.Types.SystemImmutable
......
......@@ -10,6 +10,7 @@
import QtQuick 2.15
import QtQml 2.15
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PC2
import org.kde.plasma.components 3.0 as PC3
import org.kde.kirigami 2.16 as Kirigami
......@@ -129,7 +130,7 @@ EmptyPage {
imagePath: "widgets/viewitem"
prefix: "hover"
visible: plasmoid.rootItem.contentArea !== root
|| ActionMenu.menu.status !== 1
|| ActionMenu.menu.status !== PC2.DialogStatus.Open
}
delegate: KickoffItemDelegate {
......@@ -201,7 +202,7 @@ EmptyPage {
// because Plasma doesn't support Qt scaling.
horizontalStepSize: 20 * Qt.styleHints.wheelScrollLines * PlasmaCore.Units.devicePixelRatio
verticalStepSize: 20 * Qt.styleHints.wheelScrollLines * PlasmaCore.Units.devicePixelRatio
onWheel: {
view.movedWithWheel = true
}
......@@ -222,7 +223,7 @@ EmptyPage {
interval: 200
onTriggered: view.movedWithKeyboard = false
}
Timer {
id: movedWithWheelTimer
interval: 200
......
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