fix #489,option for mouse wheel actions

pull/1/head
Michail Vourlakos 8 years ago
parent 8f9772f46a
commit 4eb0645474

@ -189,5 +189,8 @@
<entry name="indicateAudioStreams" type="Bool">
<default>true</default>
</entry>
<entry name="mouseWheelActions" type="Bool">
<default>true</default>
</entry>
</group>
</kcfg>

@ -82,6 +82,7 @@ DragDrop.DropArea {
property bool isVertical: !isHorizontal
property bool isHovered: latteApplet ? ((latteAppletHoveredIndex !== -1) && (layoutsContainer.hoveredIndex !== -1)) //|| wholeArea.containsMouse
: (layoutsContainer.hoveredIndex !== -1) //|| wholeArea.containsMouse
property bool mouseWheelActions: plasmoid.configuration.mouseWheelActions
property bool normalState : false
property bool onlyAddingStarup: true //is used for the initialization phase in startup where there arent removals, this variable provides a way to grow icon size
property bool shrinkThickMargins: plasmoid.configuration.shrinkThickMargins

@ -134,6 +134,7 @@ Item {
property bool exposeAltSession: latteDock ? latteDock.exposeAltSession : false
property bool highlightWindows: latteDock ? latteDock.highlightWindows: plasmoid.configuration.highlightWindows
property bool indicateAudioStreams: latteDock ? latteDock.indicateAudioStreams : plasmoid.configuration.indicateAudioStreams
property bool mouseWheelActions: latteDock ? latteDock.mouseWheelActions : true
property bool reverseLinesPosition: latteDock ? latteDock.reverseLinesPosition : plasmoid.configuration.reverseLinesPosition
property bool dotsOnActive: latteDock ? latteDock.dotsOnActive : plasmoid.configuration.dotsOnActive
property bool showGlow: latteDock ? latteDock.showGlow : plasmoid.configuration.showGlow

@ -744,7 +744,7 @@ MouseArea{
}
onWheel: {
if (isSeparator) {
if (isSeparator || !root.mouseWheelActions) {
return;
}

@ -167,6 +167,19 @@ PlasmaComponents.Page {
}
}
PlasmaComponents.CheckBox {
id: mouseWheelChk
Layout.leftMargin: units.smallSpacing * 2
text: i18n("Activate tasks through mouse wheel")
checked: plasmoid.configuration.mouseWheelActions
// tooltip: i18n("Enable/Disable the mouse wheel actions in order to cycle through tasks")
visible: plasmoid.configuration.advanced
onClicked: {
plasmoid.configuration.mouseWheelActions = checked
}
}
RowLayout {
Layout.leftMargin: units.smallSpacing * 2
visible: plasmoid.configuration.advanced

Loading…
Cancel
Save