Patch from Philippe Elie for making mouse wheel do

something in Qt.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5452 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-10-21 04:46:26 +00:00
parent ebef7baa26
commit 47a60e40dd
3 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-10-21 Philippe Elie <phil.el@wanadoo.fr>
* QContentPane.h:
* QContentPane.C: implement wheelEvent
2002-10-20 Dekel Tsur <dekelts@tau.ac.il>
* several files: Use QT_VERSION >= 300 instead of >= 0x030000

View File

@ -133,6 +133,12 @@ void QContentPane::mouseMoveEvent(QMouseEvent * e)
}
void QContentPane::wheelEvent(QWheelEvent * e)
{
wa_->scrollbar_->setValue(wa_->scrollbar_->value() - e->delta());
}
void QContentPane::keyPressEvent(QKeyEvent * e)
{
lyxerr[Debug::KEY] << "Press key " << e->key()

View File

@ -69,7 +69,8 @@ protected:
void mouseDoubleClickEvent(QMouseEvent * e);
/// mouse motion
void mouseMoveEvent(QMouseEvent * e);
/// wheel event
void wheelEvent(QWheelEvent * e);
/// key press
void keyPressEvent(QKeyEvent * e);
public slots: