mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-14 12:25:11 +00:00
Revert r34969.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34973 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0903700db3
commit
7441f370c0
@ -820,16 +820,16 @@ void GuiWorkArea::wheelEvent(QWheelEvent * ev)
|
|||||||
bool zoom = false;
|
bool zoom = false;
|
||||||
switch (lyxrc.scroll_whell_zoom) {
|
switch (lyxrc.scroll_whell_zoom) {
|
||||||
case LyXRC::SCROLL_WHEEL_ZOOM_CTRL:
|
case LyXRC::SCROLL_WHEEL_ZOOM_CTRL:
|
||||||
zoom = ev->modifiers() && Qt::ControlModifier;
|
zoom = ev->modifiers() & Qt::ControlModifier;
|
||||||
zoom &= !(ev->modifiers() && (Qt::ShiftModifier || Qt::AltModifier));
|
zoom &= !(ev->modifiers() & (Qt::ShiftModifier || Qt::AltModifier));
|
||||||
break;
|
break;
|
||||||
case LyXRC::SCROLL_WHEEL_ZOOM_SHIFT:
|
case LyXRC::SCROLL_WHEEL_ZOOM_SHIFT:
|
||||||
zoom = ev->modifiers() && Qt::ShiftModifier;
|
zoom = ev->modifiers() & Qt::ShiftModifier;
|
||||||
zoom &= !(ev->modifiers() && (Qt::ControlModifier || Qt::AltModifier));
|
zoom &= !(ev->modifiers() & (Qt::ControlModifier || Qt::AltModifier));
|
||||||
break;
|
break;
|
||||||
case LyXRC::SCROLL_WHEEL_ZOOM_ALT:
|
case LyXRC::SCROLL_WHEEL_ZOOM_ALT:
|
||||||
zoom = ev->modifiers() && Qt::AltModifier;
|
zoom = ev->modifiers() & Qt::AltModifier;
|
||||||
zoom &= !(ev->modifiers() && (Qt::ShiftModifier || Qt::ControlModifier));
|
zoom &= !(ev->modifiers() & (Qt::ShiftModifier || Qt::ControlModifier));
|
||||||
break;
|
break;
|
||||||
case LyXRC::SCROLL_WHEEL_ZOOM_OFF:
|
case LyXRC::SCROLL_WHEEL_ZOOM_OFF:
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user