mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 14:15:32 +00:00
use "alt" instead of "option" for modifier keyword
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34967 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
99160cd715
commit
e99bd868f9
@ -1204,8 +1204,8 @@ int LyXRC::read(Lexer & lexrc)
|
||||
scroll_whell_zoom = SCROLL_WHEEL_ZOOM_CTRL;
|
||||
else if (tmp == "shift")
|
||||
scroll_whell_zoom = SCROLL_WHEEL_ZOOM_SHIFT;
|
||||
else if (tmp == "option")
|
||||
scroll_whell_zoom = SCROLL_WHEEL_ZOOM_OPTION;
|
||||
else if (tmp == "alt")
|
||||
scroll_whell_zoom = SCROLL_WHEEL_ZOOM_ALT;
|
||||
else {
|
||||
scroll_whell_zoom = SCROLL_WHEEL_ZOOM_OFF;
|
||||
if (tmp != "off" && tmp != "false")
|
||||
@ -2604,8 +2604,8 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, string const & name) c
|
||||
case SCROLL_WHEEL_ZOOM_SHIFT:
|
||||
status = "shift";
|
||||
break;
|
||||
case SCROLL_WHEEL_ZOOM_OPTION:
|
||||
status = "option";
|
||||
case SCROLL_WHEEL_ZOOM_ALT:
|
||||
status = "alt";
|
||||
break;
|
||||
}
|
||||
os << "\\scroll_whell_zoom " << status << '\n';
|
||||
|
@ -508,7 +508,7 @@ public:
|
||||
SCROLL_WHEEL_ZOOM_OFF,
|
||||
SCROLL_WHEEL_ZOOM_CTRL,
|
||||
SCROLL_WHEEL_ZOOM_SHIFT,
|
||||
SCROLL_WHEEL_ZOOM_OPTION
|
||||
SCROLL_WHEEL_ZOOM_ALT
|
||||
};
|
||||
///
|
||||
ScrollWheelZoom scroll_whell_zoom;
|
||||
|
@ -483,7 +483,7 @@ void PrefInput::apply(LyXRC & rc) const
|
||||
rc.scroll_whell_zoom = LyXRC::SCROLL_WHEEL_ZOOM_SHIFT;
|
||||
break;
|
||||
case 2:
|
||||
rc.scroll_whell_zoom = LyXRC::SCROLL_WHEEL_ZOOM_OPTION;
|
||||
rc.scroll_whell_zoom = LyXRC::SCROLL_WHEEL_ZOOM_ALT;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
@ -511,7 +511,7 @@ void PrefInput::update(LyXRC const & rc)
|
||||
scrollzoomEnableCB->setChecked(true);
|
||||
scrollzoomValueCO->setCurrentIndex(1);
|
||||
break;
|
||||
case LyXRC::SCROLL_WHEEL_ZOOM_OPTION:
|
||||
case LyXRC::SCROLL_WHEEL_ZOOM_ALT:
|
||||
scrollzoomEnableCB->setChecked(true);
|
||||
scrollzoomValueCO->setCurrentIndex(2);
|
||||
break;
|
||||
|
@ -827,7 +827,7 @@ void GuiWorkArea::wheelEvent(QWheelEvent * ev)
|
||||
zoom = ev->modifiers() & Qt::ShiftModifier;
|
||||
zoom &= !(ev->modifiers() & (Qt::ControlModifier || Qt::AltModifier));
|
||||
break;
|
||||
case LyXRC::SCROLL_WHEEL_ZOOM_OPTION:
|
||||
case LyXRC::SCROLL_WHEEL_ZOOM_ALT:
|
||||
zoom = ev->modifiers() & Qt::AltModifier;
|
||||
zoom &= !(ev->modifiers() & (Qt::ShiftModifier || Qt::ControlModifier));
|
||||
break;
|
||||
|
@ -243,7 +243,7 @@
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Option</string>
|
||||
<string>Alt</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
|
Loading…
Reference in New Issue
Block a user