Version: (using Devel) Installed from: Compiled sources Compiler: GCC 4.1.2 Gentoo eBuild OS: Linux In Kate/Kwrite, when you use the scrollwheel over the scrollbar, only the slider moves, but not the text content. This only applies to the vertical scroll bar, not the horizontal (see Screenshots, the file contains the number 1 to 70, one in each line). I've observed this behavior in Kile as well, so I guess it is a problem in the Kate Part. This seems not to be a problem with the QT Text Area, since Multiline Edits (e.g. the one on this website to add comments, when viewing the page in Konqueror) do not have this problem.
Created attachment 23717 [details] Before Wheel scrolling
Created attachment 23718 [details] After Wheel Scrolling
It's probably in kateviewinternal.cpp. m_lineScroll is of type KateScrollBar. Some signals are connected, but not the signal QScrollBar::valueChanged(int). I don't have a wheel mouse :o anyone else? :)
The bug 160981 is a duplicate of this. I can confirm this in KDE 4.1.1 (KDE 4.1.0 (4.1 >= 20080722)) (KDEmod) in ArchLinux i686
Confirmed with kde 4.2>=20080709 on gentoo
I can also reproduce this using: Version 4.1.62 (KDE 4.1.62 (KDE 4.2 >= 20080814)) kdelibs4.2 svn rev.849324 kdebase4.2 svn rev.849337 ArchLinux 2.6.25-zen2-20080814 i686
*** Bug 160981 has been marked as a duplicate of this bug. ***
*** Bug 161412 has been marked as a duplicate of this bug. ***
SVN commit 858143 by cullmann: fix scrolling with wheel on scrollbar BUG: 161412 M +5 -0 kateviewhelpers.cpp M +1 -0 kateviewhelpers.h --- trunk/KDE/kdelibs/kate/view/kateviewhelpers.cpp #858142:858143 @@ -196,6 +196,11 @@ } } +void KateScrollBar::wheelEvent(QWheelEvent *e) +{ + QCoreApplication::sendEvent(m_viewInternal, e); +} + void KateScrollBar::marksChanged() { recomputeMarksPositions(); --- trunk/KDE/kdelibs/kate/view/kateviewhelpers.h #858142:858143 @@ -74,6 +74,7 @@ virtual void resizeEvent(QResizeEvent *); virtual void styleChange(QStyle &oldStyle); virtual void sliderChange ( SliderChange change ); + virtual void wheelEvent(QWheelEvent *e); protected Q_SLOTS: void sliderMaybeMoved(int value);
I still have this bug in KDE 4.1.3/Kate 3.1.3