Changeset View
Changeset View
Standalone View
Standalone View
src/settings.cpp
Show All 18 Lines | |||||
19 | 19 | | |||
20 | #include "settings.h" | 20 | #include "settings.h" | ||
21 | 21 | | |||
22 | #include <QDebug> | 22 | #include <QDebug> | ||
23 | #include <QStandardPaths> | 23 | #include <QStandardPaths> | ||
24 | #include <QSettings> | 24 | #include <QSettings> | ||
25 | #include <QFile> | 25 | #include <QFile> | ||
26 | #include <QGuiApplication> | 26 | #include <QGuiApplication> | ||
27 | #include <QIcon> | ||||
27 | 28 | | |||
28 | #include "libkirigami/tabletmodewatcher.h" | 29 | #include "libkirigami/tabletmodewatcher.h" | ||
29 | 30 | | |||
30 | #ifndef KIRIGAMI_BUILD_TYPE_STATIC | 31 | #ifndef KIRIGAMI_BUILD_TYPE_STATIC | ||
31 | #include "../kirigami_version.h" | 32 | #include "../kirigami_version.h" | ||
32 | #endif | 33 | #endif | ||
33 | 34 | | |||
34 | class SettingsSingleton | 35 | class SettingsSingleton | ||
▲ Show 20 Lines • Show All 118 Lines • ▼ Show 20 Line(s) | 153 | { | |||
153 | return { | 154 | return { | ||
154 | #ifndef KIRIGAMI_BUILD_TYPE_STATIC | 155 | #ifndef KIRIGAMI_BUILD_TYPE_STATIC | ||
155 | tr("KDE Frameworks %1").arg(QStringLiteral(KIRIGAMI2_VERSION_STRING)), | 156 | tr("KDE Frameworks %1").arg(QStringLiteral(KIRIGAMI2_VERSION_STRING)), | ||
156 | #endif | 157 | #endif | ||
157 | tr("The %1 windowing system").arg(QGuiApplication::platformName()), | 158 | tr("The %1 windowing system").arg(QGuiApplication::platformName()), | ||
158 | tr("Qt %2 (built against %3)").arg(QString::fromLocal8Bit(qVersion()), QStringLiteral(QT_VERSION_STR)) | 159 | tr("Qt %2 (built against %3)").arg(QString::fromLocal8Bit(qVersion()), QStringLiteral(QT_VERSION_STR)) | ||
159 | }; | 160 | }; | ||
160 | } | 161 | } | ||
162 | | ||||
163 | QVariant Settings::applicationWindowIcon() const | ||||
164 | { | ||||
165 | const QIcon& windowIcon = qApp->windowIcon(); | ||||
166 | if (windowIcon.isNull()) { | ||||
167 | return QVariant(); | ||||
168 | } | ||||
169 | return windowIcon; | ||||
170 | } |