[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 4434
Author: scorpio810
Date: 2016-04-08 01:50:36 +0200 (Fri, 08 Apr 2016)
Log Message:
-----------
Minor
Modified Paths:
--------------
trunk/sources/aboutqet.cpp
Modified: trunk/sources/aboutqet.cpp
===================================================================
--- trunk/sources/aboutqet.cpp 2016-04-07 23:11:18 UTC (rev 4433)
+++ trunk/sources/aboutqet.cpp 2016-04-07 23:50:36 UTC (rev 4434)
@@ -31,12 +31,12 @@
@param parent The parent of the dialog QWidget
*/
AboutQET::AboutQET(QWidget *parent) : QDialog(parent) {
- // Titre, taille, comportement...
+ // Title, size, behavior ...
setWindowTitle(tr("À propos de QElectrotech", "window title"));
setFixedSize (690, 610);
setModal(true);
- // Trois onglets
+ // Three tabs
QTabWidget *tabs = new QTabWidget(this);
tabs -> addTab(aboutTab(), tr("À &propos", "tab title"));
tabs -> addTab(authorsTab(), tr("A&uteurs", "tab title"));
@@ -45,20 +45,20 @@
tabs -> addTab(titleTab(), tr("&Version", "tab title"));
tabs -> addTab(licenseTab(), tr("&Accord de licence", "tab title"));
- // Un bouton pour fermer la boite de dialogue
+ // A button to close the dialog box
QDialogButtonBox *buttons = new QDialogButtonBox(QDialogButtonBox::Close);
connect(buttons, SIGNAL(accepted()), this, SLOT(accept()));
connect(buttons, SIGNAL(rejected()), this, SLOT(accept()));
- // Le tout dans une disposition verticale
+ // All in a vertical arrangement
QVBoxLayout *vlayout = new QVBoxLayout();
vlayout -> addWidget(tabs);
setLayout(vlayout);
- QScrollArea* scrollArea = new QScrollArea(this);
- scrollArea->setWidgetResizable(true);
- scrollArea->setFixedSize (690, 610);
- scrollArea->setWidget(tabs);
+ QScrollArea *scrollArea = new QScrollArea(this);
+ scrollArea->setWidgetResizable(true);
+ scrollArea->setFixedSize (690, 610);
+ scrollArea->setWidget(tabs);
}
@@ -84,6 +84,7 @@
title -> setAlignment(Qt::AlignCenter);
title -> setText(title->text() + compilation_info);
title -> setTextFormat(Qt::RichText);
+ title ->setTextInteractionFlags(Qt::TextSelectableByMouse);
return(title);
}
@@ -208,12 +209,12 @@
// label
QLabel *title_license = new QLabel(tr("Ce programme est sous licence GNU/GPL."));
- // texte de la GNU/GPL dans une zone de texte scrollable non editable
+ // Text of the GNU/GPL in a scrollable text box not editable
QTextEdit *text_license = new QTextEdit();
text_license -> setPlainText(QET::license());
text_license -> setReadOnly(true);
- // le tout dans une disposition verticale
+ // All in a vertical arrangement
QVBoxLayout *license_layout = new QVBoxLayout();
license_layout -> addWidget(title_license);
license_layout -> addWidget(text_license);
@@ -233,7 +234,7 @@
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
+ // Add the function of the person
new_text += author_template.arg(work).arg(name).arg(email);
label -> setText(new_text);
}