[Panel-devel] Smooth scrolling on Add applet dialog

Aaron J. Seigo aseigo at kde.org
Fri Oct 26 03:54:48 CEST 2007


On Thursday 25 October 2007, Rafael Fernández López wrote:
> Hi,
>
> /me loves smooth stuff
>
> This is a small patch that makes the scrolling smooth. It also workarounds
> a small bug on Qt that when you set the scrollperpixel attribute the mouse
> wheel becomes completely useless.
>
> Can I commit ?

yes, but only if

+    if (m_modelFilterItems->rowCount())
+        itemsView->verticalScrollBar()->setSingleStep(itemsView->sizeHintForRow(0));

becomes

+    if (m_modelFilterItems->rowCount()) {
+        itemsView->verticalScrollBar()->setSingleStep(itemsView->sizeHintForRow(0));
+    }

=)

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071025/ec3d31f0/attachment.pgp 


More information about the Panel-devel mailing list