Fix QAbstractTextDocumentLayout::registerHandler() argument name
Use the same argument name than in the header and docs -> no longer need for the \fn command in the docs either. Change-Id: Id84cb9298e0cb1b61df704603590d86f25323f2d Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
This commit is contained in:
parent
cd74325998
commit
75823d9c0b
@ -412,8 +412,6 @@ QAbstractTextDocumentLayout::~QAbstractTextDocumentLayout()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void QAbstractTextDocumentLayout::registerHandler(int objectType, QObject *component)
|
||||
|
||||
Registers the given \a component as a handler for items of the given \a objectType.
|
||||
|
||||
\note registerHandler() has to be called once for each object type. This
|
||||
@ -422,7 +420,7 @@ QAbstractTextDocumentLayout::~QAbstractTextDocumentLayout()
|
||||
|
||||
The text document layout does not take ownership of \c component.
|
||||
*/
|
||||
void QAbstractTextDocumentLayout::registerHandler(int formatType, QObject *component)
|
||||
void QAbstractTextDocumentLayout::registerHandler(int objectType, QObject *component)
|
||||
{
|
||||
Q_D(QAbstractTextDocumentLayout);
|
||||
|
||||
@ -435,7 +433,7 @@ void QAbstractTextDocumentLayout::registerHandler(int formatType, QObject *compo
|
||||
QTextObjectHandler h;
|
||||
h.iface = iface;
|
||||
h.component = component;
|
||||
d->handlers.insert(formatType, h);
|
||||
d->handlers.insert(objectType, h);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user