mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
* qt4/QExternal.C:
* qt4/lengthcombo.C: * qt4/QBox.C: make length units translateable git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16149 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a85cc03780
commit
99d4acd183
@ -265,7 +265,7 @@ void QBox::setSpecial(bool ibox)
|
||||
} else if (ibox && has_special) {
|
||||
dialog_->widthUnitsLC->clear();
|
||||
for (int i = 0; i < num_units; i++)
|
||||
dialog_->widthUnitsLC->addItem(unit_name_gui[i]);
|
||||
dialog_->widthUnitsLC->addItem(qt_(unit_name_gui[i]));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -338,7 +338,7 @@ void QExternal::build_dialog()
|
||||
// Fill the width combo
|
||||
dialog_->widthUnitCO->addItem(qt_("Scale%"));
|
||||
for (int i = 0; i < num_units; i++)
|
||||
dialog_->widthUnitCO->addItem(unit_name_gui[i]);
|
||||
dialog_->widthUnitCO->addItem(qt_(unit_name_gui[i]));
|
||||
}
|
||||
|
||||
|
||||
|
@ -12,15 +12,15 @@
|
||||
#include <config.h>
|
||||
|
||||
#include "lengthcombo.h"
|
||||
|
||||
#include "lengthcommon.h"
|
||||
#include "qt_helpers.h"
|
||||
|
||||
|
||||
LengthCombo::LengthCombo(QWidget * parent)
|
||||
: QComboBox(parent)
|
||||
{
|
||||
for (int i = 0; i < lyx::num_units; i++)
|
||||
addItem(lyx::unit_name_gui[i]);
|
||||
addItem(lyx::qt_(lyx::unit_name_gui[i]));
|
||||
|
||||
connect(this, SIGNAL(activated(int)),
|
||||
this, SLOT(has_activated(int)));
|
||||
|
Loading…
Reference in New Issue
Block a user