+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-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* ui/QPrefLatexModule.ui: fix layout
#include <qlabel.h>
#include <qpushbutton.h>
+#include <qtextcodec.h>
#include <qtextview.h>
using lyx::support::prefixIs;
}
#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();
+2005-04-08 Angus Leeming <leeming@lyx.org>
+
+ * FormAboutlyx.C (build): ensure that the CREDITS data fits on the
+ browser.
+
2005-03-02 Angus Leeming <leeming@lyx.org>
* forms/form_filedialog.fd: do Lars' dirty work for him and remove
ostringstream crs;
controller().getCredits(crs);
- fl_add_browser_line(credits_->browser_credits, crs.str().c_str());
+ std::string const credits_text =
+ formatted(crs.str().c_str(),
+ credits_->browser_credits->w - 15);
+ fl_add_browser_line(credits_->browser_credits, credits_text.c_str());
// create license tab
license_.reset(build_aboutlyx_license(this));