Add Application Version

This commit is contained in:
Florian RICHER 2023-12-31 23:16:23 +01:00
parent 8b87b1611b
commit 3caf7e5b8f

View file

@ -5,6 +5,8 @@
#include <QQuickStyle>
#include <KLocalizedContext>
#include <KLocalizedString>
#include <qcoreapplication.h>
#include <qstringliteral.h>
int main(int argc, char *argv[])
{
@ -13,6 +15,7 @@ int main(int argc, char *argv[])
QCoreApplication::setOrganizationName(QStringLiteral("KDE"));
QCoreApplication::setOrganizationDomain(QStringLiteral("kde.org"));
QCoreApplication::setApplicationName(QStringLiteral("Hello World"));
QCoreApplication::setApplicationVersion(QStringLiteral("0.1.0"));
if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE")) {
QQuickStyle::setStyle(QStringLiteral("org.kde.desktop"));