From 6ac7e2f710fdbea19f2416b1b26517f533398893 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sun, 4 Jan 2015 22:59:49 +0100 Subject: QCursor: add move ctor QCursor already dealt with d == nullptr, so this is trivial. Change-Id: Ib2c6a3f0dc8b93035ffe3059cdce925463706e10 Reviewed-by: Olivier Goffart --- src/gui/kernel/qcursor.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/gui/kernel/qcursor.cpp') diff --git a/src/gui/kernel/qcursor.cpp b/src/gui/kernel/qcursor.cpp index 235d2b3053..9c5bce7750 100644 --- a/src/gui/kernel/qcursor.cpp +++ b/src/gui/kernel/qcursor.cpp @@ -148,6 +148,16 @@ QT_BEGIN_NAMESPACE \sa QWidget, {fowler}{GUI Design Handbook: Cursors} */ +/*! + \fn QCursor::QCursor(QCursor &&other) + \since 5.5 + + Move-constructs a cursor from \a other. After being moved from, + the only valid operations on \a other are destruction and + (move and copy) assignment. The effects of calling any other + member function on a moved-from instance are undefined. +*/ + /*! \fn QCursor &QCursor::operator=(QCursor &&other) -- cgit v1.2.3