Skip to content

Commit

Permalink
Add full set of information to About box' clipboard
Browse files Browse the repository at this point in the history
Useful for pasting into a forum topic or issue.
Same to what MuseScore 3.x provided.
  • Loading branch information
Jojo-Schmitz committed Apr 20, 2021
1 parent 06c2533 commit c44d8e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/appshell/view/aboutmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#include "translation.h"
#include "version.h"
#include "config.h"

#include <QClipboard>
#include <QUrl>
Expand Down Expand Up @@ -77,7 +78,10 @@ QVariantMap AboutModel::musicXMLLicenseDeedUrl() const

void AboutModel::copyRevisionToClipboard() const
{
QApplication::clipboard()->setText(museScoreRevision());
QApplication::clipboard()->setText(QString(
"OS: %1, Arch.: %2, MuseScore version (%3-bit): %4-%5, revision: github-musescore-musescore-%6")
.arg(QSysInfo::prettyProductName()).arg(QSysInfo::currentCpuArchitecture()).arg(QSysInfo::WordSize)
.arg(VERSION).arg(BUILD_NUMBER).arg(MUSESCORE_REVISION));
}

QVariantMap AboutModel::makeUrl(const QString& url, const QString& displayName) const
Expand Down

0 comments on commit c44d8e2

Please sign in to comment.