mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 21:05:12 +00:00
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:
parent
ebef7baa26
commit
47a60e40dd
@ -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>
|
2002-10-20 Dekel Tsur <dekelts@tau.ac.il>
|
||||||
|
|
||||||
* several files: Use QT_VERSION >= 300 instead of >= 0x030000
|
* several files: Use QT_VERSION >= 300 instead of >= 0x030000
|
||||||
|
@ -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)
|
void QContentPane::keyPressEvent(QKeyEvent * e)
|
||||||
{
|
{
|
||||||
lyxerr[Debug::KEY] << "Press key " << e->key()
|
lyxerr[Debug::KEY] << "Press key " << e->key()
|
||||||
|
@ -69,7 +69,8 @@ protected:
|
|||||||
void mouseDoubleClickEvent(QMouseEvent * e);
|
void mouseDoubleClickEvent(QMouseEvent * e);
|
||||||
/// mouse motion
|
/// mouse motion
|
||||||
void mouseMoveEvent(QMouseEvent * e);
|
void mouseMoveEvent(QMouseEvent * e);
|
||||||
|
/// wheel event
|
||||||
|
void wheelEvent(QWheelEvent * e);
|
||||||
/// key press
|
/// key press
|
||||||
void keyPressEvent(QKeyEvent * e);
|
void keyPressEvent(QKeyEvent * e);
|
||||||
public slots:
|
public slots:
|
||||||
|
Loading…
Reference in New Issue
Block a user