Slightly improved the rendering of the "About QET" dialog with RTL languages.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1520 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2012-02-20 21:21:40 +00:00
parent fa54b6eaae
commit 8d7316641f

View File

@@ -70,13 +70,12 @@ QWidget *AboutQET::title() const {
// label "QElectroTech" // label "QElectroTech"
QLabel *title = new QLabel("<span style=\"font-weight:0;font-size:16pt;\">QElectroTech v" + QET::displayedVersion + "</span>"); QLabel *title = new QLabel("<span style=\"font-weight:0;font-size:16pt;\">QElectroTech v" + QET::displayedVersion + "</span>");
title -> setTextFormat(Qt::RichText); title -> setTextFormat(Qt::RichText);
// le tout dans une grille
QGridLayout *grid_layout = new QGridLayout(); QHBoxLayout *hlayout = new QHBoxLayout();
grid_layout -> addWidget(icon, 0, 0); hlayout -> addWidget(icon);
grid_layout -> addWidget(title, 0, 1); hlayout -> addWidget(title);
grid_layout -> setColumnStretch(0, 1); hlayout -> addStretch();
grid_layout -> setColumnStretch(1, 100); icon_and_title -> setLayout(hlayout);
icon_and_title -> setLayout(grid_layout);
return(icon_and_title); return(icon_and_title);
} }
@@ -186,7 +185,7 @@ QWidget *AboutQET::licenseTab() const {
void AboutQET::addAuthor(QLabel *label, const QString &name, const QString &email, const QString &work) const { void AboutQET::addAuthor(QLabel *label, const QString &name, const QString &email, const QString &work) const {
QString new_text = label -> text(); QString new_text = label -> text();
QString author_template = "<span style=\"text-decoration: underline;\">%1</span> : %2 &lt;<a href=\"mailto:%3\">%3</a>&gt;<br><br>"; QString author_template = "<span style=\"text-decoration: underline;\">%1</span> : %2 &lt;<a href=\"mailto:%3\">%3</a>&gt;&lrm;<br/><br/>";
// ajoute la fonction de la personne // ajoute la fonction de la personne
new_text += author_template.arg(work).arg(name).arg(email); new_text += author_template.arg(work).arg(name).arg(email);