- Application name, version number, OS
Example: Nextcloud Desktop Client
Version 2.6.4 (macOS)
- Keep previous version info in new method Theme::aboutDetails()
Signed-off-by: Michael Schuster <michael@schuster.ms>
}
QString Theme::about() const
+{
+ // Shorten Qt's OS name: "macOS Mojave (10.14)" -> "macOS"
+ QStringList osStringList = Utility::platformName().split(QLatin1Char(' '));
+ QString osName = osStringList.at(0);
+
+ QString devString;
+ //: Example text: "<p>Nextcloud Desktop Client</p>" (%1 is the application name)
+ devString = tr("<p>%1 Desktop Client</p>")
+ .arg(APPLICATION_NAME);
+
+ devString += tr("<p>Version %1. For more information please click <a href='%2'>here</a>.</p>")
+ .arg(QString::fromLatin1(MIRALL_STRINGIFY(MIRALL_VERSION)) + QString(" (%1)").arg(osName))
+ .arg(helpUrl());
+
+ return devString;
+}
+
+QString Theme::aboutDetails() const
{
QString devString;
devString = tr("<p>Version %1. For more information please click <a href='%2'>here</a>.</p>")
*/
virtual QString about() const;
+ /**
+ * Legal notice dialog version detail contents
+ */
+ virtual QString aboutDetails() const;
+
/**
* Define if the systray icons should be using mono design
*/