mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
4c2a354ebd
commit
56d18d2410
@ -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);
|
||||
|
||||
|
@ -57,7 +57,8 @@ Q_SIGNALS:
|
||||
private:
|
||||
/// one of figure or table?
|
||||
bool standardfloat_;
|
||||
|
||||
///
|
||||
std::string float_type_;
|
||||
};
|
||||
|
||||
} // namespace lyx
|
||||
|
Loading…
Reference in New Issue
Block a user