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:
Stephan Witt 2010-07-18 10:04:59 +00:00
parent 99160cd715
commit e99bd868f9
5 changed files with 9 additions and 9 deletions

View File

@ -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';

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -243,7 +243,7 @@
</item>
<item>
<property name="text">
<string>Option</string>
<string>Alt</string>
</property>
</item>
</widget>