summaryrefslogtreecommitdiffstats
path: root/doc/codesnippets/snippets/textdocument-resources/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/codesnippets/snippets/textdocument-resources/main.cpp')
-rw-r--r--doc/codesnippets/snippets/textdocument-resources/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/codesnippets/snippets/textdocument-resources/main.cpp b/doc/codesnippets/snippets/textdocument-resources/main.cpp
index e8f010a..86da5e2 100644
--- a/doc/codesnippets/snippets/textdocument-resources/main.cpp
+++ b/doc/codesnippets/snippets/textdocument-resources/main.cpp
@@ -59,7 +59,7 @@ int main(int argc, char *argv[])
//! [Adding a resource]
document.addResource(QTextDocument.ImageResource,
- QUrl("mydata://image.png"), QVariant(image))
+ QUrl("mydata://image.png"), image)
//! [Adding a resource]
//! [Inserting an image with a cursor]