Skip to content
Permalink
Browse files

launch AboutDialog.(refs #62)

  • Loading branch information...
haraki committed Jun 28, 2019
1 parent 1e18023 commit 2c42478c7ccff27df04435cbce79f19454a833a6
Showing with 3 additions and 13 deletions.
  1. +3 −13 mainwindow.cpp
@@ -14,12 +14,7 @@
#include "viewerdispatcher.h"
#include "imageviewer.h"
#include "file.h"

#ifdef Q_OS_WIN
# include "win32.h"
#else
# include "xnix.h"
#endif
#include "aboutdialog.h"

namespace Farman
{
@@ -865,13 +860,8 @@ void MainWindow::checkBookmark()

void MainWindow::about()
{
QMessageBox::about(this,
tr("About %1").arg(qApp->applicationName()),
tr("<p><font size = '+4'>%1<font size = '+1'> Version %2</font></font></p>").arg(qApp->applicationName()).arg(qApp->applicationVersion())
+ tr("<p style = 'font-weight:normal'>Based on Qt %1 ").arg(qVersion())
+ tr("(%1)").arg(getCompilerVersion())
+ tr("<p style = 'font-weight:normal'>Copyright 2019 %1 All right reserved.</p>").arg(qApp->organizationName())
);
AboutDialog dialog(this);
dialog.exec();
}

} // namespace Farman

0 comments on commit 2c42478

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