As discussed with Jean-Marc in bugzilla. This is already in.
Abdel, am I right that it is not needed for qt4?
Georg
Index: src/frontends/qt2/QContentPane.C
===================================================================
--- src/frontends/qt2/QContentPane.C (Revision 13399)
+++ src/frontends/qt2/QContentPane.C (Arbeitskopie)
@@ -258,7 +258,11 @@ void QContentPane::mouseMoveEvent(QMouse
void QContentPane::wheelEvent(QWheelEvent * e)
{
- wa_->scrollbar_->setValue(wa_->scrollbar_->value() - e->delta());
+ // Wheel rotation by one notch results in a delta() of 120 (see
+ // documentation of QWheelEvent)
+ int const lines = QApplication::wheelScrollLines() * e->delta() / 120;
+ wa_->scrollbar_->setValue(wa_->scrollbar_->value() -
+ lines * wa_->scrollbar_->lineStep());
}
Index: status.14x
===================================================================
--- status.14x (Revision 13400)
+++ status.14x (Arbeitskopie)
@@ -63,5 +63,7 @@ What's new
- Fix drawing of \boxed and \fbox in formulas (bug 2361).
+- Use the qt wide scroll wheel setting (bug 2175).
+
* Configuration/Installation: