* 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:
Michael Schmitt 2006-12-03 01:11:37 +00:00
parent a85cc03780
commit 99d4acd183
3 changed files with 4 additions and 4 deletions

View File

@ -265,7 +265,7 @@ void QBox::setSpecial(bool ibox)
} else if (ibox && has_special) { } else if (ibox && has_special) {
dialog_->widthUnitsLC->clear(); dialog_->widthUnitsLC->clear();
for (int i = 0; i < num_units; i++) for (int i = 0; i < num_units; i++)
dialog_->widthUnitsLC->addItem(unit_name_gui[i]); dialog_->widthUnitsLC->addItem(qt_(unit_name_gui[i]));
} }
} }

View File

@ -338,7 +338,7 @@ void QExternal::build_dialog()
// Fill the width combo // Fill the width combo
dialog_->widthUnitCO->addItem(qt_("Scale%")); dialog_->widthUnitCO->addItem(qt_("Scale%"));
for (int i = 0; i < num_units; i++) for (int i = 0; i < num_units; i++)
dialog_->widthUnitCO->addItem(unit_name_gui[i]); dialog_->widthUnitCO->addItem(qt_(unit_name_gui[i]));
} }

View File

@ -12,15 +12,15 @@
#include <config.h> #include <config.h>
#include "lengthcombo.h" #include "lengthcombo.h"
#include "lengthcommon.h" #include "lengthcommon.h"
#include "qt_helpers.h"
LengthCombo::LengthCombo(QWidget * parent) LengthCombo::LengthCombo(QWidget * parent)
: QComboBox(parent) : QComboBox(parent)
{ {
for (int i = 0; i < lyx::num_units; i++) 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)), connect(this, SIGNAL(activated(int)),
this, SLOT(has_activated(int))); this, SLOT(has_activated(int)));