replaced QString uses with QStringLiteral
Minor code optimization according to Qt documentation.
This commit is contained in:
+14
-14
@@ -35,20 +35,20 @@ AboutDialog::AboutDialog(QWidget *parent) :
|
||||
|
||||
// Construct About text
|
||||
QLabel* label =
|
||||
new QLabel(QString("<html><head/><body>"
|
||||
"<p><img src=\":/icons/olive-splash.png\"/></p>"
|
||||
"<p><a href=\"https://www.olivevideoeditor.org/\">"
|
||||
"<span style=\" text-decoration: underline; color:#007af4;\">"
|
||||
"https://www.olivevideoeditor.org/"
|
||||
"</span></a></p>"
|
||||
"<p><b>%1</b></p>" // AppName (version identifier)
|
||||
"<p>%2</p>" // First statement
|
||||
"<p>%3</p>" // Second statement
|
||||
"</body></html>").arg(QApplication::applicationName(),
|
||||
tr("Olive is a non-linear video editor. This software is free and "
|
||||
"protected by the GNU GPL."),
|
||||
tr("Olive Team is obliged to inform users that Olive source code is "
|
||||
"available for download from its website.")),this);
|
||||
new QLabel(QStringLiteral("<html><head/><body>"
|
||||
"<p><img src=\":/icons/olive-splash.png\"/></p>"
|
||||
"<p><a href=\"https://www.olivevideoeditor.org/\">"
|
||||
"<span style=\" text-decoration: underline; color:#007af4;\">"
|
||||
"https://www.olivevideoeditor.org/"
|
||||
"</span></a></p>"
|
||||
"<p><b>%1</b></p>" // AppName (version identifier)
|
||||
"<p>%2</p>" // First statement
|
||||
"<p>%3</p>" // Second statement
|
||||
"</body></html>").arg(QApplication::applicationName(),
|
||||
tr("Olive is a non-linear video editor. This software is free and "
|
||||
"protected by the GNU GPL."),
|
||||
tr("Olive Team is obliged to inform users that Olive source code is "
|
||||
"available for download from its website.")),this);
|
||||
|
||||
// Set text formatting
|
||||
label->setAlignment(Qt::AlignCenter);
|
||||
|
||||
Reference in New Issue
Block a user