Fix most obvious typos in doc comments
Just opened some files with spell checker turned on, and corrected what was underlined. Also, see QTBUG-84427. Change-Id: I702b5bf2cfe1f23c928a6a57f117a2f571ad86ea Pick-to: 5.15 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
This commit is contained in:
parent
56977990e0
commit
93c8b4c0c8
@ -656,7 +656,7 @@ void QMetaCallEvent::placeMetaCall(QObject *object)
|
||||
\fn QSignalBlocker::QSignalBlocker(QSignalBlocker &&other)
|
||||
|
||||
Move-constructs a signal blocker from \a other. \a other will have
|
||||
a no-op destructor, while repsonsibility for restoring the
|
||||
a no-op destructor, while responsibility for restoring the
|
||||
QObject::signalsBlocked() state is transferred to the new object.
|
||||
*/
|
||||
|
||||
@ -664,7 +664,7 @@ void QMetaCallEvent::placeMetaCall(QObject *object)
|
||||
\fn QSignalBlocker &QSignalBlocker::operator=(QSignalBlocker &&other)
|
||||
|
||||
Move-assigns this signal blocker from \a other. \a other will have
|
||||
a no-op destructor, while repsonsibility for restoring the
|
||||
a no-op destructor, while responsibility for restoring the
|
||||
QObject::signalsBlocked() state is transferred to this object.
|
||||
|
||||
The object's signals this signal blocker was blocking prior to
|
||||
@ -694,7 +694,7 @@ void QMetaCallEvent::placeMetaCall(QObject *object)
|
||||
\fn void QSignalBlocker::unblock()
|
||||
|
||||
Temporarily restores the QObject::signalsBlocked() state to what
|
||||
it was before this QSignaBlocker's constructor ran. To undo, use
|
||||
it was before this QSignalBlocker's constructor ran. To undo, use
|
||||
reblock().
|
||||
|
||||
The numbers of reblock() and unblock() calls are not counted, so
|
||||
@ -3137,7 +3137,7 @@ bool QObject::disconnect(const QObject *sender, const QMetaMethod &signal,
|
||||
}
|
||||
if (method.mobj) {
|
||||
if(method.methodType() == QMetaMethod::Constructor) {
|
||||
qWarning("QObject::disconect: cannot use constructor as argument %s::%s",
|
||||
qWarning("QObject::disconnect: cannot use constructor as argument %s::%s",
|
||||
receiver->metaObject()->className(), method.methodSignature().constData());
|
||||
return false;
|
||||
}
|
||||
@ -3161,13 +3161,13 @@ bool QObject::disconnect(const QObject *sender, const QMetaMethod &signal,
|
||||
// If we are here sender is not nullptr. If signal is not nullptr while signal_index
|
||||
// is -1 then this signal is not a member of sender.
|
||||
if (signal.mobj && signal_index == -1) {
|
||||
qWarning("QObject::disconect: signal %s not found on class %s",
|
||||
qWarning("QObject::disconnect: signal %s not found on class %s",
|
||||
signal.methodSignature().constData(), sender->metaObject()->className());
|
||||
return false;
|
||||
}
|
||||
// If this condition is true then method is not a member of receeiver.
|
||||
// If this condition is true then method is not a member of receiver.
|
||||
if (receiver && method.mobj && method_index == -1) {
|
||||
qWarning("QObject::disconect: method %s not found on class %s",
|
||||
qWarning("QObject::disconnect: method %s not found on class %s",
|
||||
method.methodSignature().constData(), receiver->metaObject()->className());
|
||||
return false;
|
||||
}
|
||||
@ -3585,7 +3585,7 @@ void QMetaObject::connectSlotsByName(QObject *o)
|
||||
if (sigIndex < 0) {
|
||||
// if no exactly fitting signal (name + complete parameter type list) could be found
|
||||
// look for just any signal with the correct name and at least the slot's parameter list.
|
||||
// Note: if more than one of thoses signals exist, the one that gets connected is
|
||||
// Note: if more than one of those signals exist, the one that gets connected is
|
||||
// chosen 'at random' (order of declaration in source file)
|
||||
QList<QByteArray> compatibleSignals;
|
||||
const QMetaObject *smo = co->metaObject();
|
||||
@ -4868,7 +4868,7 @@ void qDeleteInEventHandler(QObject *o)
|
||||
\a receiver is the receiver object, may not be \nullptr, will be equal to sender when
|
||||
connecting to a static function or a functor
|
||||
\a slot a pointer only used when using Qt::UniqueConnection
|
||||
\a type the Qt::ConnctionType passed as argument to connect
|
||||
\a type the Qt::ConnectionType passed as argument to connect
|
||||
\a types an array of integer with the metatype id of the parameter of the signal
|
||||
to be used with queued connection
|
||||
must stay valid at least for the whole time of the connection, this function
|
||||
@ -5025,7 +5025,7 @@ bool QObject::disconnect(const QMetaObject::Connection &connection)
|
||||
}
|
||||
|
||||
/*! \fn template<typename PointerToMemberFunction> bool QObject::disconnect(const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
|
||||
\overload diconnect()
|
||||
\overload disconnect()
|
||||
\threadsafe
|
||||
|
||||
Disconnects \a signal in object \a sender from \a method in object
|
||||
@ -5076,7 +5076,7 @@ bool QObject::disconnect(const QMetaObject::Connection &connection)
|
||||
if \a receiver is left out, so you cannot disconnect a
|
||||
specifically-named slot on all objects.
|
||||
|
||||
\note It is not possible to use this overload to diconnect signals
|
||||
\note It is not possible to use this overload to disconnect signals
|
||||
connected to functors or lambda expressions. That is because it is not
|
||||
possible to compare them. Instead, use the overload that takes a
|
||||
QMetaObject::Connection
|
||||
@ -5111,7 +5111,7 @@ bool QObject::disconnectImpl(const QObject *sender, void **signal, const QObject
|
||||
|
||||
/*!
|
||||
\internal
|
||||
Used by QML to connect a signal by index to a slot implemented in JavaScript (wrapped in a custom QSlotOBjectBase subclass).
|
||||
Used by QML to connect a signal by index to a slot implemented in JavaScript (wrapped in a custom QSlotObjectBase subclass).
|
||||
|
||||
The signal_index is an index relative to the number of methods.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user