Review Request 126242: KCoreAddons: Add WheelArea

David Rosca nowrep at gmail.com
Fri Dec 4 16:07:39 UTC 2015



> On Dec. 4, 2015, 3:57 p.m., Aleix Pol Gonzalez wrote:
> > Maybe it fits better in KQuickControls? KCoreAddons is mostly for actually interfacing with KCoreAddons the framework.
> > 
> > Have you considered getting an iteration of this upstream in Qt? At first glance the feature doesn't look super-useful though... ^^'

No, I don't think it fits in Qt. 
But I think it would be useful to have it in kdeclarative as otherwise the same code would be duplicated everywhere the wheel events are translated to "steps" (not used for actual scrolling). That is - changing brightness in battery applet, changing volume in plasma-pa or changing month in calendar popup.


- David


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126242/#review89126
-----------------------------------------------------------


On Dec. 4, 2015, 2:21 p.m., David Rosca wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/126242/
> -----------------------------------------------------------
> 
> (Updated Dec. 4, 2015, 2:21 p.m.)
> 
> 
> Review request for KDE Frameworks.
> 
> 
> Repository: kdeclarative
> 
> 
> Description
> -------
> 
> Our QML code in various places is using custom handling for wheel events with high resolution touchpads, but this code varies in details (eg. doesn't reset wheelDelta on changing direction or using completely different logic).
> This adds a WheelArea that takes care of computing delta in consistent manner and offers signals for scroll steps (up, down, left, right).
> 
> This code is a merge of wheel handling code from batteryapplet and plasma-pa + it adds handling of scrolling to both directions.
> 
> 
> Diffs
> -----
> 
>   src/qmlcontrols/kcoreaddons/qmldir 626f8ce 
>   src/qmlcontrols/kcoreaddons/CMakeLists.txt 3f77f2d 
>   src/qmlcontrols/kcoreaddons/WheelArea.qml PRE-CREATION 
> 
> Diff: https://git.reviewboard.kde.org/r/126242/diff/
> 
> 
> Testing
> -------
> 
> Works fine with both classic mouse wheel scrolling and high resolution scrolling (from trackpoint).
> 
> I'm not sure if KCoreAddons is the correct place.
> 
> 
> Thanks,
> 
> David Rosca
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20151204/8671e017/attachment.html>


More information about the Kde-frameworks-devel mailing list