mirror of
https://github.com/KDE/latte-dock.git
synced 2024-12-28 03:21:38 +03:00
update editVisual transparency through emptyAreas
This commit is contained in:
parent
f7484eba47
commit
243ece638c
@ -159,6 +159,11 @@ Item{
|
||||
"You can use mouse wheel to change background opacity of %0%").arg(Math.round(plasmoid.configuration.editBackgroundOpacity * 100))
|
||||
|
||||
onWheel: {
|
||||
processWheel(wheel);
|
||||
}
|
||||
|
||||
|
||||
function processWheel(wheel) {
|
||||
if (wheelIsBlocked) {
|
||||
return;
|
||||
}
|
||||
@ -175,6 +180,15 @@ Item{
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: root
|
||||
onEmptyAreasWheel: {
|
||||
if (root.editMode && !root.inConfigureAppletsMode) {
|
||||
editBackMouseArea.processWheel(wheel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//! A timer is needed in order to handle also touchpads that probably
|
||||
//! send too many signals very fast. This way the signals per sec are limited.
|
||||
//! The user needs to have a steady normal scroll in order to not
|
||||
|
@ -98,6 +98,11 @@ Loader {
|
||||
}
|
||||
|
||||
onWheel: {
|
||||
if (root.scrollAction === Latte.Types.ScrollNone) {
|
||||
root.emptyAreasWheel(wheel);
|
||||
return;
|
||||
}
|
||||
|
||||
var delta = 0;
|
||||
|
||||
if (wheel.angleDelta.y>=0 && wheel.angleDelta.x>=0) {
|
||||
|
@ -48,6 +48,7 @@ DragDrop.DropArea {
|
||||
//// BEGIN SIGNALS
|
||||
signal clearZoomSignal();
|
||||
signal destroyInternalViewSplitters();
|
||||
signal emptyAreasWheel(QtObject wheel);
|
||||
signal separatorsUpdated();
|
||||
signal signalActivateEntryAtIndex(int entryIndex);
|
||||
signal signalNewInstanceForEntryAtIndex(int entryIndex);
|
||||
|
Loading…
Reference in New Issue
Block a user