diff options
author | Tasuku Suzuki <stasuku@gmail.com> | 2013-04-13 00:50:38 +0900 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-19 09:57:09 +0200 |
commit | 02713994bf9c72a3cf1ab55b780ab23916d6f79b (patch) | |
tree | 12749fd2b37d9ecfcb57884ac1c533e60eb54a02 /src/plugins/platforms/offscreen/qoffscreenintegration.cpp | |
parent | f3612f39ff5fb07f83b89732e8b7a643ee6d5cd3 (diff) |
Make qtbase compile with QT_NO_DRAGANDDROP
Change-Id: Id1a74c6b22b388d20103b4e73f83c8345ec70ba6
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Diffstat (limited to 'src/plugins/platforms/offscreen/qoffscreenintegration.cpp')
-rw-r--r-- | src/plugins/platforms/offscreen/qoffscreenintegration.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/offscreen/qoffscreenintegration.cpp b/src/plugins/platforms/offscreen/qoffscreenintegration.cpp index e3fcc7ebb0..5b74ad3b8d 100644 --- a/src/plugins/platforms/offscreen/qoffscreenintegration.cpp +++ b/src/plugins/platforms/offscreen/qoffscreenintegration.cpp @@ -106,7 +106,9 @@ QOffscreenIntegration::QOffscreenIntegration() m_fontDatabase.reset(new QBasicFontDatabase()); #endif +#ifndef QT_NO_DRAGANDDROP m_drag.reset(new QOffscreenDrag); +#endif m_services.reset(new QPlatformServices); QGuiApplicationPrivate::instance()->setEventDispatcher(m_eventDispatcher); @@ -149,10 +151,12 @@ QPlatformFontDatabase *QOffscreenIntegration::fontDatabase() const return m_fontDatabase.data(); } +#ifndef QT_NO_DRAGANDDROP QPlatformDrag *QOffscreenIntegration::drag() const { return m_drag.data(); } +#endif QPlatformServices *QOffscreenIntegration::services() const { |