1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00

Add version as from class

This commit is contained in:
Elias Steurer 2021-03-14 12:01:46 +01:00
parent f9a777be48
commit a9170d35ca
3 changed files with 8 additions and 3 deletions

View File

@ -54,7 +54,7 @@ App::App()
QGuiApplication::setOrganizationName("ScreenPlay");
QGuiApplication::setOrganizationDomain("https://screen-play.app");
QGuiApplication::setApplicationName("ScreenPlay");
QGuiApplication::setApplicationVersion("0.13.0");
QGuiApplication::setApplicationVersion("0.13.1");
QGuiApplication::setQuitOnLastWindowClosed(false);
QFontDatabase::addApplicationFont(":/assets/fonts/LibreBaskerville-Italic.ttf");
@ -208,6 +208,11 @@ void App::init()
QObject::connect(m_monitorListModel.get(), &MonitorListModel::monitorConfigurationChanged, m_screenPlayManager.get(), &ScreenPlayManager::closeAllWallpapers);
}
QString App::version() const
{
return QGuiApplication::applicationVersion();
}
/*!
\brief Tries to send the telemetry quit event before we call quit ourself.
*/

View File

@ -118,7 +118,7 @@ signals:
void wizardsChanged(Wizards* wizards);
public slots:
QString version() const;
void exit();
bool loadSteamPlugin();
bool unloadSteamPlugin();

View File

@ -24,7 +24,7 @@ ApplicationWindow {
visible: false
width: 1400
height: 788
title: "ScreenPlay Alpha - 0.13.0"
title: "ScreenPlay Alpha - " + ScreenPlay.version();
minimumHeight: 450
minimumWidth: 1050
onVisibilityChanged: {