diff options
author | Liang Qi <liang.qi@qt.io> | 2016-06-13 09:04:09 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2016-06-13 19:06:06 +0200 |
commit | 4d2f743baaf6869693f4540df668e1b998154785 (patch) | |
tree | ba712b420e5d299be28faf641d30585ae8dce4e7 /src/quick/items/qquickitemgrabresult.cpp | |
parent | 0c5a9ff9876cb1af53317720d1de8baae003e21d (diff) | |
parent | 0932a59971f606f07b41da19f3974d51b7008180 (diff) |
Merge remote-tracking branch 'origin/5.7' into dev
Conflicts:
src/plugins/qmltooling/qmldbg_profiler/qqmlprofilerservice.cpp
Change-Id: I26d6435a29cac3840bb567ade5149c2562a94bf9
Diffstat (limited to 'src/quick/items/qquickitemgrabresult.cpp')
-rw-r--r-- | src/quick/items/qquickitemgrabresult.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/quick/items/qquickitemgrabresult.cpp b/src/quick/items/qquickitemgrabresult.cpp index 019352c57a..0db5323863 100644 --- a/src/quick/items/qquickitemgrabresult.cpp +++ b/src/quick/items/qquickitemgrabresult.cpp @@ -299,7 +299,7 @@ QQuickItemGrabResult *QQuickItemGrabResultPrivate::create(QQuickItem *item, cons * Use \a targetSize to specify the size of the target image. By default, the * result will have the same size as item. * - * If the grab could not be initiated, the function returns a \c null. + * If the grab could not be initiated, the function returns \c null. * * \note This function will render the item to an offscreen surface and * copy that surface from the GPU's memory into the CPU's memory, which can @@ -326,7 +326,8 @@ QSharedPointer<QQuickItemGrabResult> QQuickItem::grabToImage(const QSize &target * Grabs the item into an in-memory image. * * The grab happens asynchronously and the JavaScript function \a callback is - * invoked when the grab is completed. + * invoked when the grab is completed. The callback takes one argument, which + * is the result of the grab operation; an \l ItemGrabResult object. * * Use \a targetSize to specify the size of the target image. By default, the result * will have the same size as the item. |