path: root/src/gui/kernel
diff options
authorAlbert Astals Cid <>2016-10-17 14:05:10 +0200
committerAlbert Astals Cid <>2016-10-19 08:58:18 +0000
commit8249f490ff82ee2a223d2c64661cfcb1c24bdeb4 (patch)
tree01f422dc68e4519747cef35cb1991cd21a8376e4 /src/gui/kernel
parent683c9bc4a8e656b2251871b9d8c9952e58681a52 (diff)
Document QClipboard::mimeData can be null
The current wording (reference) seems like it's always a pointer to valid stuff Change-Id: I2a9f8bde7d2ba672e4e664ff731a3272a6deaaaa Reviewed-by: Edward Welbourne <>
Diffstat (limited to 'src/gui/kernel')
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/kernel/qclipboard.cpp b/src/gui/kernel/qclipboard.cpp
index 1aac3d6021..325ba7d787 100644
--- a/src/gui/kernel/qclipboard.cpp
+++ b/src/gui/kernel/qclipboard.cpp
@@ -419,8 +419,9 @@ void QClipboard::setPixmap(const QPixmap &pixmap, Mode mode)
\fn QMimeData *QClipboard::mimeData(Mode mode) const
- Returns a reference to a QMimeData representation of the current
- clipboard data.
+ Returns a pointer to a QMimeData representation of the current
+ clipboard data (can be NULL if the given \a mode is not
+ supported by the platform).
The \a mode argument is used to control which part of the system
clipboard is used. If \a mode is QClipboard::Clipboard, the