Make float type translatable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33404 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2010-02-10 07:06:14 +00:00
parent 4c2a354ebd
commit 56d18d2410
2 changed files with 5 additions and 3 deletions

View File

@ -48,7 +48,7 @@ FloatPlacement::FloatPlacement(QWidget *)
docstring FloatPlacement::dialogToParams() const
{
InsetFloatParams params;
params.type = fromqstr(floatType->text());
params.type = float_type_;
params.placement = get(params.wide, params.sideways);
return from_ascii(InsetFloat::params2string(params));
}
@ -122,7 +122,8 @@ void FloatPlacement::paramsToDialog(Inset const * inset)
InsetFloat const * fl = static_cast<InsetFloat const *>(inset);
InsetFloatParams const & params = fl->params();
floatType->setText(toqstr(params.type));
float_type_ = params.type;
floatType->setText(qt_(float_type_));
set(params.placement);

View File

@ -57,7 +57,8 @@ Q_SIGNALS:
private:
/// one of figure or table?
bool standardfloat_;
///
std::string float_type_;
};
} // namespace lyx