diff options
author | Martin Smith <martin.smith@nokia.com> | 2010-05-19 12:50:29 (GMT) |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2010-05-19 12:50:29 (GMT) |
commit | 59deb35ed4925563b5bdc20db501c3aa2f033dea (patch) | |
tree | d7e3a5be4e81aeaf113e912755e55902e62bf81a /src | |
parent | 58ba7dc8a05353294e1530e1a94de7c9f130a845 (diff) | |
download | Qt-59deb35ed4925563b5bdc20db501c3aa2f033dea.zip Qt-59deb35ed4925563b5bdc20db501c3aa2f033dea.tar.gz Qt-59deb35ed4925563b5bdc20db501c3aa2f033dea.tar.bz2 |
doc: Fixed many broken links.
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/kernel/qobject.cpp | 20 | ||||
-rw-r--r-- | src/corelib/tools/qrect.cpp | 8 | ||||
-rw-r--r-- | src/script/api/qscriptengine.cpp | 17 |
3 files changed, 28 insertions, 17 deletions
diff --git a/src/corelib/kernel/qobject.cpp b/src/corelib/kernel/qobject.cpp index 6a6db51..8330e47 100644 --- a/src/corelib/kernel/qobject.cpp +++ b/src/corelib/kernel/qobject.cpp @@ -542,7 +542,7 @@ int QMetaCallEvent::placeMetaCall(QObject *object) \reentrant - QObject is the heart of the \l{Qt object model}. The central + QObject is the heart of the Qt \l{Object Model}. The central feature in this model is a very powerful mechanism for seamless object communication called \l{signals and slots}. You can connect a signal to a slot with connect() and destroy the @@ -551,13 +551,13 @@ int QMetaCallEvent::placeMetaCall(QObject *object) protected functions connectNotify() and disconnectNotify() make it possible to track connections. - QObjects organize themselves in \l {Object Trees and Object - Ownership} {object trees}. When you create a QObject with another - object as parent, the object will automatically add itself to the - parent's children() list. The parent takes ownership of the - object; i.e., it will automatically delete its children in its - destructor. You can look for an object by name and optionally type - using findChild() or findChildren(). + QObjects organize themselves in \l {Object Trees & Ownership} + {object trees}. When you create a QObject with another object as + parent, the object will automatically add itself to the parent's + children() list. The parent takes ownership of the object; i.e., + it will automatically delete its children in its destructor. You + can look for an object by name and optionally type using + findChild() or findChildren(). Every object has an objectName() and its class name can be found via the corresponding metaObject() (see QMetaObject::className()). @@ -609,7 +609,7 @@ int QMetaCallEvent::placeMetaCall(QObject *object) Qt classes derived from QObject (direct or indirect) use this macro to declare their copy constructor and assignment operator to be private. The reasoning is found in the discussion on - \l{Identity vs Value} {Identity vs Value} on the \l{Qt Object + \l{Identity vs Value} {Identity vs Value} on the Qt \l{Object Model} page. The main consequence is that you should use pointers to QObject @@ -656,7 +656,7 @@ int QMetaCallEvent::placeMetaCall(QObject *object) \l{Writing Source Code for Translation} document. \sa QMetaObject, QPointer, QObjectCleanupHandler, Q_DISABLE_COPY() - \sa {Object Trees and Object Ownership} + \sa {Object Trees & Ownership} */ /*! diff --git a/src/corelib/tools/qrect.cpp b/src/corelib/tools/qrect.cpp index 80563ae..308a561 100644 --- a/src/corelib/tools/qrect.cpp +++ b/src/corelib/tools/qrect.cpp @@ -1272,7 +1272,7 @@ bool QRect::intersects(const QRect &r) const Writes the given \a rectangle to the given \a stream, and returns a reference to the stream. - \sa {Format of the QDataStream Operators} + \sa {Serializing Qt Data Types} */ QDataStream &operator<<(QDataStream &s, const QRect &r) @@ -1293,7 +1293,7 @@ QDataStream &operator<<(QDataStream &s, const QRect &r) Reads a rectangle from the given \a stream into the given \a rectangle, and returns a reference to the stream. - \sa {Format of the QDataStream Operators} + \sa {Serializing Qt Data Types} */ QDataStream &operator>>(QDataStream &s, QRect &r) @@ -2420,7 +2420,7 @@ QRect QRectF::toAlignedRect() const Writes the \a rectangle to the \a stream, and returns a reference to the stream. - \sa \link datastreamformat.html Format of the QDataStream operators \endlink + \sa {Serializing Qt Data Types} */ QDataStream &operator<<(QDataStream &s, const QRectF &r) @@ -2437,7 +2437,7 @@ QDataStream &operator<<(QDataStream &s, const QRectF &r) Reads a \a rectangle from the \a stream, and returns a reference to the stream. - \sa \link datastreamformat.html Format of the QDataStream operators \endlink + \sa {Serializing Qt Data Types} */ QDataStream &operator>>(QDataStream &s, QRectF &r) diff --git a/src/script/api/qscriptengine.cpp b/src/script/api/qscriptengine.cpp index 03d535c..86915bb 100644 --- a/src/script/api/qscriptengine.cpp +++ b/src/script/api/qscriptengine.cpp @@ -294,9 +294,20 @@ QT_BEGIN_NAMESPACE This enum specifies the ownership when wrapping a C++ value, e.g. by using newQObject(). - \value QtOwnership The standard Qt ownership rules apply, i.e. the associated object will never be explicitly deleted by the script engine. This is the default. (QObject ownership is explained in \l{Object Trees and Object Ownership}.) - \value ScriptOwnership The value is owned by the script environment. The associated data will be deleted when appropriate (i.e. after the garbage collector has discovered that there are no more live references to the value). - \value AutoOwnership If the associated object has a parent, the Qt ownership rules apply (QtOwnership); otherwise, the object is owned by the script environment (ScriptOwnership). + \value QtOwnership The standard Qt ownership rules apply, i.e. the + associated object will never be explicitly deleted by the script + engine. This is the default. (QObject ownership is explained in + \l{Object Trees & Ownership}.) + + \value ScriptOwnership The value is owned by the script + environment. The associated data will be deleted when appropriate + (i.e. after the garbage collector has discovered that there are no + more live references to the value). + + \value AutoOwnership If the associated object has a parent, the Qt + ownership rules apply (QtOwnership); otherwise, the object is + owned by the script environment (ScriptOwnership). + */ /*! |