Skip to content
Permalink
Browse files

fix statement for AboutDialog.(#refs 62)

  • Loading branch information...
haraki committed Jun 27, 2019
1 parent 62029ee commit 5ee13db49617108027b60936505427742a54960c
Showing with 13 additions and 5 deletions.
  1. +1 −0 main.cpp
  2. +12 −5 mainwindow.cpp
@@ -5,6 +5,7 @@
int main(int argc, char *argv[])
{
QCoreApplication::setOrganizationName("MASHSOFT");
QCoreApplication::setApplicationVersion(APP_VERSION);

int ret = 0;

@@ -860,11 +860,18 @@ void MainWindow::checkBookmark()
void MainWindow::about()
{
QMessageBox::about(this,
tr("About farman"),
tr("<font size = '+8'>farman</font>") +
tr("<p>Version ") + APP_VERSION + "</p>" +
tr("<p>Copyright 2018 MASHSOFT All right reserved.</p>"));

tr("About %1").arg(qApp->applicationName()),
QString("<p><font size = '+4'>%1<font size = '+1'> Version %2</font></font></p>").arg(qApp->applicationName()).arg(qApp->applicationVersion())
+ QString("<p style = 'font-weight:normal'>Based on Qt %1 ").arg(qVersion())
#if defined(_MSC_VER)
+ QString("(MSVC %1)</p>").arg(_MSC_VER)
#elif defined(__clang__)
+ QString("(Clang %1)</p>").arg(__clang_version__)
#elif defined(__GNUC__)
+ QString("(gcc %1.%2.%3)</p>").arg(__GNUC__).arg(__GNUC_MINOR__).arg(__GNUC_PATCHLEVEL__)
#endif
+ QString("<p style = 'font-weight:normal'>Copyright 2019 %1 All right reserved.</p>").arg(qApp->organizationName())
);
}

} // namespace Farman

0 comments on commit 5ee13db

Please sign in to comment.
You can’t perform that action at this time.