diff options
Diffstat (limited to 'src/gui/kernel/qplatformintegration.cpp')
| -rw-r--r-- | src/gui/kernel/qplatformintegration.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformintegration.cpp b/src/gui/kernel/qplatformintegration.cpp index 434344df089..06d2aa4fca2 100644 --- a/src/gui/kernel/qplatformintegration.cpp +++ b/src/gui/kernel/qplatformintegration.cpp @@ -51,6 +51,10 @@ #include <private/qdnd_p.h> #include <private/qsimpledrag_p.h> +#ifndef QT_NO_SESSIONMANAGER +# include <qpa/qplatformsessionmanager.h> +#endif + QT_BEGIN_NAMESPACE /*! @@ -395,4 +399,17 @@ QPlatformOffscreenSurface *QPlatformIntegration::createPlatformOffscreenSurface( return 0; } +#ifndef QT_NO_SESSIONMANAGER +/*! + \since 5.2 + + Factory function for QPlatformSessionManager. The default QPlatformSessionManager provides the same + functionality as the QSessionManager. +*/ +QPlatformSessionManager *QPlatformIntegration::createPlatformSessionManager(const QString &id, const QString &key) const +{ + return new QPlatformSessionManager(id, key); +} +#endif + QT_END_NAMESPACE |
