mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 11:08:41 +00:00
Fix display of CREDITS info in Help->About dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9794 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1fc0f73ef5
commit
f8b0dc67eb
@ -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-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
2005-03-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
||||||
|
|
||||||
* ui/QPrefLatexModule.ui: fix layout
|
* ui/QPrefLatexModule.ui: fix layout
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
#include <qlabel.h>
|
#include <qlabel.h>
|
||||||
#include <qpushbutton.h>
|
#include <qpushbutton.h>
|
||||||
|
#include <qtextcodec.h>
|
||||||
#include <qtextview.h>
|
#include <qtextview.h>
|
||||||
|
|
||||||
using lyx::support::prefixIs;
|
using lyx::support::prefixIs;
|
||||||
@ -104,7 +105,16 @@ void QAbout::build_dialog()
|
|||||||
}
|
}
|
||||||
#endif
|
#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
|
// try to resize to a good size
|
||||||
dialog_->copyright->hide();
|
dialog_->copyright->hide();
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2005-03-02 Angus Leeming <leeming@lyx.org>
|
||||||
|
|
||||||
* forms/form_filedialog.fd: do Lars' dirty work for him and remove
|
* forms/form_filedialog.fd: do Lars' dirty work for him and remove
|
||||||
|
@ -65,7 +65,10 @@ void FormAboutlyx::build()
|
|||||||
ostringstream crs;
|
ostringstream crs;
|
||||||
controller().getCredits(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
|
// create license tab
|
||||||
license_.reset(build_aboutlyx_license(this));
|
license_.reset(build_aboutlyx_license(this));
|
||||||
|
Loading…
Reference in New Issue
Block a user