remove duplicate of toqstr

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16137 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2006-12-02 19:53:21 +00:00
parent 095625dc3c
commit c5629aab95
3 changed files with 1 additions and 11 deletions

View File

@ -117,7 +117,7 @@ void QParagraph::update_contents()
// lyx::to_utf8(_() is correct here (this is stupid though !))
if (labelwidth != _("Senseless with this layout!")) {
dialog_->labelwidthGB->setEnabled(true);
dialog_->labelWidth->setText(ucs4_to_qstring(labelwidth));
dialog_->labelWidth->setText(toqstr(labelwidth));
} else {
dialog_->labelwidthGB->setEnabled(false);
dialog_->labelWidth->setText("");

View File

@ -120,14 +120,6 @@ void ucs4_to_qstring(lyx::docstring const & str, QString & s)
}
QString ucs4_to_qstring(lyx::docstring const & str)
{
QString tmp;
ucs4_to_qstring(str, tmp);
return tmp;
}
QString const toqstr(docstring const & ucs4)
{
QString s;

View File

@ -99,8 +99,6 @@ inline void ucs4_to_qstring(char_type const * str, size_t ls, QString & s)
}
QString ucs4_to_qstring(docstring const & str);
docstring const qstring_to_ucs4(QString const & qstr);
void qstring_to_ucs4(QString const & qstr, std::vector<char_type> & ucs4);