Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Allow flick scrolling in QML resource dropdowns
Carsten Hartenfels1c5d43e7382f
diff --git a/qmlmodules/components/qml/resourceDelegates/CssStylePresetDelegate.qml b/qmlmodules/components/qml/resourceDelegates/CssStylePresetDelegate.qmlindex 23508b98d4..b591e9eb8f 100644--- a/qmlmodules/components/qml/resourceDelegates/CssStylePresetDelegate.qml+++ b/qmlmodules/components/qml/resourceDelegates/CssStylePresetDelegate.qml@@ -76,7 +76,6 @@ ResourceDelegateBase {acceptedButtons: Qt.RightButton | Qt.LeftButton;anchors.fill: parent;hoverEnabled: true;- preventStealing: true;onClicked: {if (mouse.button === Qt.RightButton) {resourceView.openContextMenu(mouse.x, mouse.y, parent.model.name, parent.model.index);diff --git a/qmlmodules/components/qml/resourceDelegates/FontFamilyDelegate.qml b/qmlmodules/components/qml/resourceDelegates/FontFamilyDelegate.qmlindex c093774e3b..d987bdb71d 100644--- a/qmlmodules/components/qml/resourceDelegates/FontFamilyDelegate.qml+++ b/qmlmodules/components/qml/resourceDelegates/FontFamilyDelegate.qml@@ -217,8 +217,6 @@ ResourceDelegateBase {acceptedButtons: Qt.RightButton | Qt.LeftButton;anchors.fill: parent;hoverEnabled: true;- // Itemdelegate can also handle hovers, but we don't use those.- preventStealing: true;onClicked: {if (mouse.button === Qt.RightButton) {resourceView.openContextMenu(mouse.x, mouse.y, parent.model.name, parent.index);