Add Qt's standard "About Qt" dialog, remove the Qt version from "About Dolphin"
This commit is contained in:
parent
8a50676b83
commit
c6d99ad87e
|
@ -35,8 +35,7 @@ AboutDialog::AboutDialog(QWidget* parent) : QDialog(parent)
|
|||
|
||||
<p style='font-size: small;'>
|
||||
%BRANCH%<br>
|
||||
%REVISION%<br><br>
|
||||
%QT_VERSION%
|
||||
%REVISION%
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
@ -57,14 +56,12 @@ AboutDialog::AboutDialog(QWidget* parent) : QDialog(parent)
|
|||
<a href='https://forums.dolphin-emu.org/'>%SUPPORT%</a>
|
||||
)")
|
||||
.replace(QStringLiteral("%VERSION_STRING%"),
|
||||
QString::fromUtf8(Common::GetScmDescStr().c_str()))
|
||||
QString::fromStdString(Common::GetScmDescStr()))
|
||||
.replace(QStringLiteral("%BRANCH%"),
|
||||
// i18n: "Branch" means the version control term, not a literal tree branch.
|
||||
tr("Branch: %1").arg(branch_str))
|
||||
.replace(QStringLiteral("%REVISION%"),
|
||||
tr("Revision: %1").arg(QString::fromUtf8(Common::GetScmRevGitStr().c_str())))
|
||||
.replace(QStringLiteral("%QT_VERSION%"),
|
||||
tr("Using Qt %1").arg(QStringLiteral(QT_VERSION_STR)))
|
||||
tr("Revision: %1").arg(QString::fromStdString(Common::GetScmRevGitStr())))
|
||||
.replace(QStringLiteral("%CHECK_FOR_UPDATES%"), tr("Check for updates"))
|
||||
.replace(QStringLiteral("%ABOUT_DOLPHIN%"),
|
||||
// i18n: The word "free" in the standard phrase "free and open source"
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include <QAction>
|
||||
#include <QActionGroup>
|
||||
#include <QApplication>
|
||||
#include <QDesktopServices>
|
||||
#include <QFileDialog>
|
||||
#include <QFontDialog>
|
||||
|
@ -640,7 +641,8 @@ void MenuBar::AddHelpMenu()
|
|||
help_menu->addSeparator();
|
||||
#endif
|
||||
|
||||
help_menu->addAction(tr("&About"), this, &MenuBar::ShowAboutDialog);
|
||||
help_menu->addAction(tr("About &Qt"), &QApplication::aboutQt);
|
||||
help_menu->addAction(tr("&About Dolphin"), this, &MenuBar::ShowAboutDialog);
|
||||
}
|
||||
|
||||
void MenuBar::AddGameListTypeSection(QMenu* view_menu)
|
||||
|
|
Loading…
Reference in New Issue