mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
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:
@@ -70,13 +70,12 @@ QWidget *AboutQET::title() const {
|
||||
// label "QElectroTech"
|
||||
QLabel *title = new QLabel("<span style=\"font-weight:0;font-size:16pt;\">QElectroTech v" + QET::displayedVersion + "</span>");
|
||||
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 = "<span style=\"text-decoration: underline;\">%1</span> : %2 <<a href=\"mailto:%3\">%3</a>><br><br>";
|
||||
QString author_template = "<span style=\"text-decoration: underline;\">%1</span> : %2 <<a href=\"mailto:%3\">%3</a>>‎<br/><br/>";
|
||||
|
||||
// ajoute la fonction de la personne
|
||||
new_text += author_template.arg(work).arg(name).arg(email);
|
||||
|
||||
Reference in New Issue
Block a user