Fix display of CREDITS info in Help->About dialog.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@9795 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2005-04-08 15:12:18 +00:00
parent 0f0a407954
commit fb506da844
3 changed files with 18 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-04-08 Angus Leeming <leeming@lyx.org>
* QAbout.C (build_dialog): specify that the CREDITS data is
encoded in ISO-8859-1 (latin1).
2005-03-30 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* ui/QCitationDialogBase.ui: fix typo in tooltip

View File

@ -20,6 +20,7 @@
#include <qlabel.h>
#include <qpushbutton.h>
#include <qtextcodec.h>
#include <qtextview.h>
#include "QAboutDialog.h"
@ -96,7 +97,16 @@ void QAbout::build_dialog()
}
#endif
dialog_->creditsTV->setText(toqstr(out.str()));
// Try and grab the latin1 codec
QTextCodec * const codec =
QTextCodec::codecForName("ISO8859-1");
if (!codec)
lyxerr << "Unable to find ISO8859-1 codec" << std::endl;
QString const qtext = codec ?
codec->toUnicode(out.str().c_str()) :
toqstr(out.str());
dialog_->creditsTV->setText(qtext);
// try to resize to a good size
dialog_->copyright->hide();

View File

@ -109,6 +109,8 @@ What's new
- Fix binding of Shift-Tab, which was broken on some systems.
- Enable the display of accented characters in the Help->About dialog.
* Configuration/Installation: