Add Application Version
This commit is contained in:
parent
8b87b1611b
commit
3caf7e5b8f
1 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,8 @@
|
||||||
#include <QQuickStyle>
|
#include <QQuickStyle>
|
||||||
#include <KLocalizedContext>
|
#include <KLocalizedContext>
|
||||||
#include <KLocalizedString>
|
#include <KLocalizedString>
|
||||||
|
#include <qcoreapplication.h>
|
||||||
|
#include <qstringliteral.h>
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
@ -13,6 +15,7 @@ int main(int argc, char *argv[])
|
||||||
QCoreApplication::setOrganizationName(QStringLiteral("KDE"));
|
QCoreApplication::setOrganizationName(QStringLiteral("KDE"));
|
||||||
QCoreApplication::setOrganizationDomain(QStringLiteral("kde.org"));
|
QCoreApplication::setOrganizationDomain(QStringLiteral("kde.org"));
|
||||||
QCoreApplication::setApplicationName(QStringLiteral("Hello World"));
|
QCoreApplication::setApplicationName(QStringLiteral("Hello World"));
|
||||||
|
QCoreApplication::setApplicationVersion(QStringLiteral("0.1.0"));
|
||||||
|
|
||||||
if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE")) {
|
if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE")) {
|
||||||
QQuickStyle::setStyle(QStringLiteral("org.kde.desktop"));
|
QQuickStyle::setStyle(QStringLiteral("org.kde.desktop"));
|
||||||
|
|
Loading…
Reference in a new issue