Simplify code a bit.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40244 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-11-23 16:49:34 +00:00
parent 66af29735c
commit 05194fa79b

View File

@ -42,30 +42,30 @@ GuiHSpace::GuiHSpace(bool math_mode, QWidget * parent)
spacingCO->clear();
if (math_mode_) {
spacingCO->addItem(qt_("Interword Space"), toqstr("normal"));
spacingCO->addItem(qt_("Thin Space"), toqstr("thinspace"));
spacingCO->addItem(qt_("Medium Space"), toqstr("medspace"));
spacingCO->addItem(qt_("Thick Space"), toqstr("thickspace"));
spacingCO->addItem(qt_("Negative Thin Space"), toqstr("negthinspace"));
spacingCO->addItem(qt_("Negative Medium Space"), toqstr("negmedspace"));
spacingCO->addItem(qt_("Negative Thick Space"), toqstr("negthickspace"));
spacingCO->addItem(qt_("Half Quad (0.5 em)"), toqstr("halfquad"));
spacingCO->addItem(qt_("Quad (1 em)"), toqstr("quad"));
spacingCO->addItem(qt_("Double Quad (2 em)"), toqstr("qquad"));
spacingCO->addItem(qt_("Horizontal Fill"), toqstr("hfill"));
spacingCO->addItem(qt_("Custom"), toqstr("custom"));
spacingCO->addItem(qt_("Interword Space"), "normal");
spacingCO->addItem(qt_("Thin Space"), "thinspace");
spacingCO->addItem(qt_("Medium Space"), "medspace");
spacingCO->addItem(qt_("Thick Space"), "thickspace");
spacingCO->addItem(qt_("Negative Thin Space"), "negthinspace");
spacingCO->addItem(qt_("Negative Medium Space"), "negmedspace");
spacingCO->addItem(qt_("Negative Thick Space"), "negthickspace");
spacingCO->addItem(qt_("Half Quad (0.5 em)"), "halfquad");
spacingCO->addItem(qt_("Quad (1 em)"), "quad");
spacingCO->addItem(qt_("Double Quad (2 em)"), "qquad");
spacingCO->addItem(qt_("Horizontal Fill"), "hfill");
spacingCO->addItem(qt_("Custom"), "custom");
} else {
spacingCO->addItem(qt_("Interword Space"), toqstr("normal"));
spacingCO->addItem(qt_("Thin Space"), toqstr("thinspace"));
spacingCO->addItem(qt_("Negative Thin Space"), toqstr("negthinspace"));
spacingCO->addItem(qt_("Negative Medium Space"), toqstr("negmedspace"));
spacingCO->addItem(qt_("Negative Thick Space"), toqstr("negthickspace"));
spacingCO->addItem(qt_("Half Quad (0.5 em)"), toqstr("halfquad"));
spacingCO->addItem(qt_("Quad (1 em)"), toqstr("quad"));
spacingCO->addItem(qt_("Double Quad (2 em)"), toqstr("qquad"));
spacingCO->addItem(qt_("Horizontal Fill"), toqstr("hfill"));
spacingCO->addItem(qt_("Custom"), toqstr("custom"));
spacingCO->addItem(qt_("Visible Space"), toqstr("visible"));
spacingCO->addItem(qt_("Interword Space"), "normal");
spacingCO->addItem(qt_("Thin Space"), "thinspace");
spacingCO->addItem(qt_("Negative Thin Space"), "negthinspace");
spacingCO->addItem(qt_("Negative Medium Space"), "negmedspace");
spacingCO->addItem(qt_("Negative Thick Space"), "negthickspace");
spacingCO->addItem(qt_("Half Quad (0.5 em)"), "halfquad");
spacingCO->addItem(qt_("Quad (1 em)"), "quad");
spacingCO->addItem(qt_("Double Quad (2 em)"), "qquad");
spacingCO->addItem(qt_("Horizontal Fill"), "hfill");
spacingCO->addItem(qt_("Custom"), "custom");
spacingCO->addItem(qt_("Visible Space"), "visible");
}
connect(spacingCO, SIGNAL(highlighted(QString)),