diff options
author | Albert Astals Cid <albert.astals@canonical.com> | 2016-10-17 14:05:10 +0200 |
---|---|---|
committer | Albert Astals Cid <albert.astals@canonical.com> | 2016-10-19 08:58:18 +0000 |
commit | 8249f490ff82ee2a223d2c64661cfcb1c24bdeb4 (patch) | |
tree | 01f422dc68e4519747cef35cb1991cd21a8376e4 /src/gui/kernel/qclipboard.cpp | |
parent | 683c9bc4a8e656b2251871b9d8c9952e58681a52 (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 <edward.welbourne@qt.io>
Diffstat (limited to 'src/gui/kernel/qclipboard.cpp')
-rw-r--r-- | src/gui/kernel/qclipboard.cpp | 5 |
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 |