diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-03-04 10:37:11 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-03-04 10:37:11 (GMT) |
commit | 8bc0456491e5a7e1fc677fce6e76932ab0d923e8 (patch) | |
tree | 2e0634859448e83372cb9e381ac38e4bfbbe3a41 /doc | |
parent | b3ccc9b30c3a176021b6205193b8baa416e9e813 (diff) | |
parent | 24c56ac5309150cf7ba42cd974df4e98d97ebb81 (diff) | |
download | Qt-8bc0456491e5a7e1fc677fce6e76932ab0d923e8.zip Qt-8bc0456491e5a7e1fc677fce6e76932ab0d923e8.tar.gz Qt-8bc0456491e5a7e1fc677fce6e76932ab0d923e8.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2:
Build fix for Sun Studio
Finish to resolve merge conflict.
Fixes QMenu to only have static POD members
QScript: Test against QMetaType::QVariant instead of against the string
Fixes tst_QScriptExtQObject::connectAndDisconnect
Fix source compatibility of qRegisterMetaType
Fix warnings on MSVC
Updating documentation for how to build QWS with tslib
sizeHint of checkbox/radiobutton without text is not correct
Some cleanup of outdated src/3rdparty stuff
Revert "Fixes crash when destroying a QGraphicsItem."
Add config.test for multimedia/qml
Fix QVariant autotest
Fix compilation of Q_DECLARE_METATYPE(QVariant) by introducing QMetaType::QVariant
fixed a memory leak when restoring a state in QMainWindow
Make the sub-menu accessible via its shortcut even if it is the current
remove a warning on windows and simplify a bit the code
Add and use QGLContextPrivate::eglSurfaceForDevice()
QMetaType: Now we can register typedefs.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/platforms/emb-pointer.qdoc | 6 | ||||
-rw-r--r-- | doc/src/snippets/code/doc_src_emb-pointer.qdoc | 5 | ||||
-rw-r--r-- | doc/src/snippets/code/src_corelib_kernel_qmetatype.cpp | 5 |
3 files changed, 12 insertions, 4 deletions
diff --git a/doc/src/platforms/emb-pointer.qdoc b/doc/src/platforms/emb-pointer.qdoc index 34510da..3c37b63 100644 --- a/doc/src/platforms/emb-pointer.qdoc +++ b/doc/src/platforms/emb-pointer.qdoc @@ -154,9 +154,9 @@ in the build environment. The tslib sources can be downloaded from \l - http://tslib.berlios.de. Use the \c configure script's -L and - -I options to explicitly specify the location of the library and - its headers: + http://tslib.berlios.de. Specify the location of the library and + its headers using -L and -I options in the \c qmake.conf file in + your \c mkspec. Also it can be helpful to add a -rpath-link: \snippet doc/src/snippets/code/doc_src_emb-pointer.qdoc 7 diff --git a/doc/src/snippets/code/doc_src_emb-pointer.qdoc b/doc/src/snippets/code/doc_src_emb-pointer.qdoc index 9661ae5..0d66e18 100644 --- a/doc/src/snippets/code/doc_src_emb-pointer.qdoc +++ b/doc/src/snippets/code/doc_src_emb-pointer.qdoc @@ -77,7 +77,10 @@ export QWS_MOUSE_PROTO="Vr41xx:press=500:/dev/misc/ts" //! [7] -./configure -L <path to tslib library> -I <path to tslib headers> +.... +QMAKE_CFLAGS += -I<path to tslib headers> +QMAKE_LFLAGS += -L<path to tslib library> -Wl,-rpath-link=<path to tslib library> +.... //! [7] diff --git a/doc/src/snippets/code/src_corelib_kernel_qmetatype.cpp b/doc/src/snippets/code/src_corelib_kernel_qmetatype.cpp index bff72a0..19e37ba 100644 --- a/doc/src/snippets/code/src_corelib_kernel_qmetatype.cpp +++ b/doc/src/snippets/code/src_corelib_kernel_qmetatype.cpp @@ -108,3 +108,8 @@ int id = qRegisterMetaType<MyStruct>(); int id = qMetaTypeId<QString>(); // id is now QMetaType::QString id = qMetaTypeId<MyStruct>(); // compile error if MyStruct not declared //! [8] + +//! [9] +typedef QString CustomString; +qRegisterMetaType<CustomString>("CustomString"); +//! [9] |