if (LocalMyList::MyList::revision())
revision = tr("from revision %1").arg(LocalMyList::MyList::revision());
- const QString description = tr(
- "<h3>%1 %2 <font size=\"3\">(%7 bit)</font></h3>"
- "<p>Built with\tQt %3<br/>"
- "Running with\tQt %4<br/>"
- "<br/>"
- "Built on " __DATE__ " at " __TIME__ " "
- "%6"
- "<br/>"
- "<br/>"
- "Copyright (C) 2009 %5. All rights reserved.</p>"
- "<p>The program is provided AS IS with NO WARRANTY OF ANY KIND, "
- "INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A "
- "PARTICULAR PURPOSE.</p>")
+ const QString description = tr(R"(
+ <h3>%1 %2 <font size=\"3\">(%7 bit)</font></h3>
+ <p>Built with Qt %3<br/>
+ Running with Qt %4<br/>
+ <br/>
+ Built on %8 at %9
+ %6
+ <br/>
+ <br/>
+ Copyright (C) %10 %5. All rights reserved.</p>
+ <p>The program is provided AS IS with NO WARRANTY OF ANY KIND,
+ INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE.</p>)")
.arg(qApp->applicationName())
.arg(qApp->applicationVersion())
.arg(QLatin1String(QT_VERSION_STR))
.arg(QLatin1String(qVersion()))
.arg(qApp->organizationName())
.arg(revision)
- .arg(QSysInfo::WordSize);
+ .arg(QSysInfo::WordSize)
+ .arg(__DATE__)
+ .arg(__TIME__)
+ // Format of __DATE__ is "Mmm dd yyyy" 16.8p1 [cpp.predefined]
+ .arg(__DATE__ + 7);
QLabel *copyrightLabel = new QLabel(description);
copyrightLabel->setWordWrap(true);
buttonBox->addButton(closeButton, QDialogButtonBox::ButtonRole(QDialogButtonBox::RejectRole | QDialogButtonBox::AcceptRole));
connect(buttonBox , SIGNAL(rejected()), this, SLOT(reject()));
+ QLabel *icon = new QLabel(this);
+ icon->setPixmap(QPixmap::fromImage(QImage(":/icon.png")));
+
+ layout->addWidget(icon, 0, 0);
layout->addWidget(copyrightLabel, 0, 1, 4, 4);
layout->addWidget(buttonBox, 4, 0, 1, 5);
}