~ubuntu-branches/ubuntu/oneiric/pyside/oneiric

« back to all changes in this revision

Viewing changes to doc/codesnippets/snippets/textdocument-resources/main.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Didier Raboud
  • Date: 2010-10-19 22:52:14 UTC
  • mfrom: (1.1.4 upstream)
  • mto: (13.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20101019225214-0s9fbpz12x3962qa
Tags: upstream-0.4.2
ImportĀ upstreamĀ versionĀ 0.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
 
60
60
//! [Adding a resource]
61
61
    document.addResource(QTextDocument.ImageResource,
62
 
        QUrl("mydata://image.png"), QVariant(image))
 
62
        QUrl("mydata://image.png"), image)
63
63
//! [Adding a resource]
64
64
 
65
65
//! [Inserting an image with a cursor]