summaryrefslogtreecommitdiffstats
path: root/doc/codesnippets/snippets
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-10-05 14:55:20 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-10-05 16:44:50 -0300
commit1508831725b74ce7962a1dba79848cad8e87258f (patch)
treed3b489ddfdd5bf268deac57774141f3dbf0f9b13 /doc/codesnippets/snippets
parent829ffd3dfd31eef3b98678adfcba1609445305b3 (diff)
downloadpyside-1508831725b74ce7962a1dba79848cad8e87258f.tar.gz
pyside-1508831725b74ce7962a1dba79848cad8e87258f.tar.xz
pyside-1508831725b74ce7962a1dba79848cad8e87258f.zip
Fixed some code snippets used in the PySide docs.
Diffstat (limited to 'doc/codesnippets/snippets')
-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]