Review Request 125863: Fix WheelScrollLines settings with Qt >= 5.5
Luca Beltrame
lbeltrame at kde.org
Fri Oct 30 20:47:26 UTC 2015
> On Ott. 30, 2015, 8:34 p.m., Luca Beltrame wrote:
> > It looks like this broke mouse wheel scrolling for me (on Qt 5.5.1): how can I debug to ensure this is the case and not a local issue?
>
> David Rosca wrote:
> Broke in what way? Did you try if it works without this commit?
>
> Luca Beltrame wrote:
> I just reverted it and wheel scrolls again.
> Broken as in, there is no wheel scrolling in (tested):
>
> - Kate
> - Konversation
> - Kontact
>
> But works in:
> - Dolphin
>
> David Rosca wrote:
> It shouldn't break it, unless you have set 0 wheel scroll lines in mouse kcm. In the worst case, it should just ignore that value from kcm and use default 3 lines (but that is what this should be actually fixing).
>
> Luca Beltrame wrote:
> FYI, it's set to 3 lines there.
>
> David Rosca wrote:
> Ok, so can you add qDebug() << "wheelscrolllines" << m_hints[QPlatformTheme::WheelScrollLines]; after it is fetched from config and check it picks the correct value? (line 110 and 337 in khintssettings.cpp)
> Also can you test if changing the wheel scroll lines value in mouse kcm and applying it fixes scrolling for running applications?
Before adjusting config in the mouse KCM:
```
kate
wheelscrolllines at line 110 QVariant(int, 0)
0x13dda40 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0x977880) ): Attempt to set a screen on a child window.
0x13ddf20 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0x977880) ): Attempt to set a screen on a child window.
0x13de8b0 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0x977880) ): Attempt to set a screen on a child window.
0x13df0a0 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0x977880) ): Attempt to set a screen on a child window.
0x13e2150 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0x977880) ): Attempt to set a screen on a child window.
0x145e790 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0x977880) ): Attempt to set a screen on a child window.
wheelscrolllines at 338 QVariant(int, 0)
````
After changing config, scrolling works again (need an application restart).
- Luca
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/125863/#review87757
-----------------------------------------------------------
On Ott. 29, 2015, 8:01 p.m., David Rosca wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/125863/
> -----------------------------------------------------------
>
> (Updated Ott. 29, 2015, 8:01 p.m.)
>
>
> Review request for KDE Frameworks.
>
>
> Bugs: 291144
> https://bugs.kde.org/show_bug.cgi?id=291144
>
>
> Repository: frameworkintegration
>
>
> Description
> -------
>
> Use platform theme hint instead of manually using QApplication::setWheelScrollLines
>
>
> Diffs
> -----
>
> src/platformtheme/khintssettings.cpp 6e8313d
>
> Diff: https://git.reviewboard.kde.org/r/125863/diff/
>
>
> Testing
> -------
>
> Qt 5.5 apps now correctly scroll by the value set in mouse kcm
>
>
> Thanks,
>
> David Rosca
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20151030/6de29db6/attachment.html>
More information about the Kde-frameworks-devel
mailing list