diff options
author | Jason Barron <jbarron@trolltech.com> | 2009-06-16 12:08:42 (GMT) |
---|---|---|
committer | Jason Barron <jbarron@trolltech.com> | 2009-06-16 12:08:42 (GMT) |
commit | 228b2f6494ebd95fc66993b00ecab065ec5fe5a5 (patch) | |
tree | 619c06fc6260363e94b7ae593b23e1c3b7711fc5 /doc/src | |
parent | 9d78e1132427ec803f08b2861ab27587ca72cfbf (diff) | |
parent | 7243161097b1a7b72706aec09389dcb046da7d0f (diff) | |
download | Qt-228b2f6494ebd95fc66993b00ecab065ec5fe5a5.zip Qt-228b2f6494ebd95fc66993b00ecab065ec5fe5a5.tar.gz Qt-228b2f6494ebd95fc66993b00ecab065ec5fe5a5.tar.bz2 |
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt-s60-public
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/installation.qdoc | 12 | ||||
-rw-r--r-- | doc/src/snippets/code/src_corelib_tools_qscopedpointer.cpp | 20 |
2 files changed, 27 insertions, 5 deletions
diff --git a/doc/src/installation.qdoc b/doc/src/installation.qdoc index 13af50c..05188c7 100644 --- a/doc/src/installation.qdoc +++ b/doc/src/installation.qdoc @@ -554,9 +554,9 @@ in the \l{Qt for S60 Requirements} document. \note Qt for S60 has some requirements that are given in more detail in the \l{Qt for S60 Requirements} document. -\note This document describes how to install Qt for S60 from the source package. -Go \l{Installing Qt on S60 using binary package}{here} for instructions on how to install -Qt using binary package. +\note \bold {This document describes how to install and configure Qt for S60 from scratch. +If you are using pre-built binaries, follow the instructions +\l{Installing Qt on S60 using binary package}{here}.} \list 1 @@ -904,7 +904,11 @@ Qt using binary package. Qt for S60 requires the following software installed on your development PC: \list - \o \l{http://www.forum.nokia.com/main/resources/tools_and_sdks/carbide_cpp/}{Carbide.c++ v2.0.0 or higher} + \o \l{http://www.forum.nokia.com/main/resources/tools_and_sdks/carbide_cpp/}{Carbide.c++ v2.0.0 or higher} + \list + \o \bold{Note:} It is necessary to update Carbide compiler if you are using Carbide 2.0.2 or older. + You can find a compiler patch \l{http://pepper.troll.no/s60prereleases/patches/}{here}. + \endlist \o \l{http://www.forum.nokia.com/main/resources/tools_and_sdks/S60SDK/}{S60 Platform SDK 3rd Edition FP1 or higher} \o \l{http://www.forum.nokia.com/main/resources/technologies/openc_cpp/}{Open C/C++ v1.6.0 or higher}. Install this to all S60 SDKs you plan to use Qt with. diff --git a/doc/src/snippets/code/src_corelib_tools_qscopedpointer.cpp b/doc/src/snippets/code/src_corelib_tools_qscopedpointer.cpp index 05377dd..7de42b7 100644 --- a/doc/src/snippets/code/src_corelib_tools_qscopedpointer.cpp +++ b/doc/src/snippets/code/src_corelib_tools_qscopedpointer.cpp @@ -3,7 +3,6 @@ void myFunction(bool useSubClass) { MyClass *p = useSubClass ? new MyClass() : new MySubClass; QIODevice *device = handsOverOwnership(); - QIODevi if (m_value > 3) { delete p; @@ -62,3 +61,22 @@ if (scopedPointer) { ... } //! [3] + +//! [4] +class MyPrivateClass; // forward declare MyPrivateClass + +class MyClass +{ +private: + QScopedPointer<MyPrivateClass> privatePtr; // QScopedPointer to forward declared class + +public: + MyClass(); // OK + inline ~MyClass() {} // VIOLATION - Destructor must not be inline + +private: + Q_DISABLE_COPY(MyClass) // OK - copy constructor and assignment operators + // are now disabled, so the compiler won't implicitely + // generate them. +}; +//! [4] |