diff options
| author | Water-Team <water@pad.test.qt.nokia.com> | 2011-08-18 23:00:15 (GMT) |
|---|---|---|
| committer | Water-Team <water@pad.test.qt.nokia.com> | 2011-08-18 23:00:15 (GMT) |
| commit | 607b7d39c32e5d1f334f7af91ad626c7acb5e460 (patch) | |
| tree | 61f9e5820ef06c436037b7957e36b4e3af84ae17 /doc/src | |
| parent | e58a402fbee2fc8af8cd651acafdc28525ed1314 (diff) | |
| parent | e2abcf0d8e83a9403c57b1504a663310e888e2dd (diff) | |
| download | Qt-607b7d39c32e5d1f334f7af91ad626c7acb5e460.zip Qt-607b7d39c32e5d1f334f7af91ad626c7acb5e460.tar.gz Qt-607b7d39c32e5d1f334f7af91ad626c7acb5e460.tar.bz2 | |
Merge branch '4.8-upstream' into master-water
Diffstat (limited to 'doc/src')
| -rw-r--r-- | doc/src/declarative/network.qdoc | 7 | ||||
| -rw-r--r-- | doc/src/snippets/qcolumnview/main.cpp | 2 | ||||
| -rw-r--r-- | doc/src/snippets/textdocument-imagedrop/main.cpp | 2 | ||||
| -rw-r--r-- | doc/src/snippets/textdocument-imagedrop/textedit.h | 6 |
4 files changed, 8 insertions, 9 deletions
diff --git a/doc/src/declarative/network.qdoc b/doc/src/declarative/network.qdoc index cb83542..0ebf8ae 100644 --- a/doc/src/declarative/network.qdoc +++ b/doc/src/declarative/network.qdoc @@ -134,10 +134,9 @@ One of the URL schemes built into Qt is the "qrc" scheme. This allows content to the executable using \l{The Qt Resource System}. Using this, an executable can reference QML content that is compiled into the executable: -\code - QDeclarativeView *canvas = new QDeclarativeView; - canvas->setUrl(QUrl("qrc:/dial.qml")); -\endcode +\quotefromfile snippets/declarative/qtbinding/resources/main.cpp +\skipto view +\printuntil setSource The content itself can then use relative URLs, and so be transparently unaware that the content is compiled into the executable. diff --git a/doc/src/snippets/qcolumnview/main.cpp b/doc/src/snippets/qcolumnview/main.cpp index c39a4bb..fecff12 100644 --- a/doc/src/snippets/qcolumnview/main.cpp +++ b/doc/src/snippets/qcolumnview/main.cpp @@ -76,4 +76,4 @@ int main(int argc, char *argv[]) columnView.show(); return app.exec(); -}
\ No newline at end of file +} diff --git a/doc/src/snippets/textdocument-imagedrop/main.cpp b/doc/src/snippets/textdocument-imagedrop/main.cpp index 24cd2de..0cdf3a1 100644 --- a/doc/src/snippets/textdocument-imagedrop/main.cpp +++ b/doc/src/snippets/textdocument-imagedrop/main.cpp @@ -49,4 +49,4 @@ int main(int argc, char * argv[]) textEdit->show(); return app.exec(); -}
\ No newline at end of file +} diff --git a/doc/src/snippets/textdocument-imagedrop/textedit.h b/doc/src/snippets/textdocument-imagedrop/textedit.h index 9e0492b..9db9f17 100644 --- a/doc/src/snippets/textdocument-imagedrop/textedit.h +++ b/doc/src/snippets/textdocument-imagedrop/textedit.h @@ -46,11 +46,11 @@ class TextEdit : public QTextEdit { Q_OBJECT - -public: + +public: TextEdit(QWidget *parent=0); bool canInsertFromMimeData( const QMimeData *source ) const; void insertFromMimeData( const QMimeData *source ); }; -#endif
\ No newline at end of file +#endif |
