From 8d7316641f719ea385cb21180a10bcfa8a14986a Mon Sep 17 00:00:00 2001 From: xavier Date: Mon, 20 Feb 2012 21:21:40 +0000 Subject: [PATCH] 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 --- sources/aboutqet.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/sources/aboutqet.cpp b/sources/aboutqet.cpp index 7ad836412..48a1986d1 100644 --- a/sources/aboutqet.cpp +++ b/sources/aboutqet.cpp @@ -70,13 +70,12 @@ QWidget *AboutQET::title() const { // label "QElectroTech" QLabel *title = new QLabel("QElectroTech v" + QET::displayedVersion + ""); title -> setTextFormat(Qt::RichText); - // le tout dans une grille - QGridLayout *grid_layout = new QGridLayout(); - grid_layout -> addWidget(icon, 0, 0); - grid_layout -> addWidget(title, 0, 1); - grid_layout -> setColumnStretch(0, 1); - grid_layout -> setColumnStretch(1, 100); - icon_and_title -> setLayout(grid_layout); + + QHBoxLayout *hlayout = new QHBoxLayout(); + hlayout -> addWidget(icon); + hlayout -> addWidget(title); + hlayout -> addStretch(); + icon_and_title -> setLayout(hlayout); 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 { QString new_text = label -> text(); - QString author_template = "%1 : %2 <%3>

"; + QString author_template = "%1 : %2 <%3>‎

"; // ajoute la fonction de la personne new_text += author_template.arg(work).arg(name).arg(email);