mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
Move debug output to SCROLLING.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22789 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
4a6a7fbe55
commit
c7a9ddab7a
@ -668,10 +668,9 @@ void GuiWorkArea::wheelEvent(QWheelEvent * e)
|
|||||||
double const lines = qApp->wheelScrollLines()
|
double const lines = qApp->wheelScrollLines()
|
||||||
* lyxrc.mouse_wheel_speed
|
* lyxrc.mouse_wheel_speed
|
||||||
* e->delta() / 120.0;
|
* e->delta() / 120.0;
|
||||||
lyxerr << "wheelScrollLines = " << qApp->wheelScrollLines()
|
LYXERR(Debug::SCROLLING, "wheelScrollLines = " << qApp->wheelScrollLines()
|
||||||
<< " delta = " << e->delta()
|
<< " delta = " << e->delta()
|
||||||
<< " lines = " << lines
|
<< " lines = " << lines);
|
||||||
<< std::endl;
|
|
||||||
verticalScrollBar()->setValue(verticalScrollBar()->value() -
|
verticalScrollBar()->setValue(verticalScrollBar()->value() -
|
||||||
int(lines * verticalScrollBar()->singleStep()));
|
int(lines * verticalScrollBar()->singleStep()));
|
||||||
}
|
}
|
||||||
@ -679,7 +678,7 @@ void GuiWorkArea::wheelEvent(QWheelEvent * e)
|
|||||||
|
|
||||||
void GuiWorkArea::generateSyntheticMouseEvent()
|
void GuiWorkArea::generateSyntheticMouseEvent()
|
||||||
{
|
{
|
||||||
// Set things off to generate the _next_ 'pseudo' event.
|
// Set things off to generate the _next_ 'pseudo' event.
|
||||||
if (synthetic_mouse_event_.restart_timeout)
|
if (synthetic_mouse_event_.restart_timeout)
|
||||||
synthetic_mouse_event_.timeout.start();
|
synthetic_mouse_event_.timeout.start();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user