summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qclipboard_qpa.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2011-06-08 21:59:33 +0200
committerLars Knoll <lars.knoll@nokia.com>2011-06-20 12:50:16 +0200
commitfc266713cc20d0f90524bc2ec7e8fd6b57c61c99 (patch)
tree2637202da6376ac8def94d0c563ae4ca18fab66d /src/gui/kernel/qclipboard_qpa.cpp
parent672fe5d43cd256813acdda95e2cd9a4d22ad705a (diff)
Add a platform API for QClipboard::ownsMode()
Simply forward ownsMode() to the QPlatformClipboard.
Diffstat (limited to 'src/gui/kernel/qclipboard_qpa.cpp')
-rw-r--r--src/gui/kernel/qclipboard_qpa.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/kernel/qclipboard_qpa.cpp b/src/gui/kernel/qclipboard_qpa.cpp
index cbff593d7c..737b2131c0 100644
--- a/src/gui/kernel/qclipboard_qpa.cpp
+++ b/src/gui/kernel/qclipboard_qpa.cpp
@@ -53,7 +53,7 @@ QT_USE_NAMESPACE
void QClipboard::clear(Mode mode)
{
- setMimeData(0,mode);
+ setMimeData(0, mode);
}
@@ -87,9 +87,8 @@ bool QClipboard::supportsMode(Mode mode) const
bool QClipboard::ownsMode(Mode mode) const
{
- if (mode == Clipboard)
- qWarning("QClipboard::ownsClipboard: UNIMPLEMENTED!");
- return false;
+ QPlatformClipboard *clipboard = QGuiApplicationPrivate::platformIntegration()->clipboard();
+ return clipboard->ownsMode(mode);
}
void QClipboard::connectNotify( const char * )