From 75823d9c0b0a6907a215de444d1a31250067189e Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Sun, 1 Sep 2013 21:54:19 +0200 Subject: 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 --- src/gui/text/qabstracttextdocumentlayout.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/gui/text/qabstracttextdocumentlayout.cpp') diff --git a/src/gui/text/qabstracttextdocumentlayout.cpp b/src/gui/text/qabstracttextdocumentlayout.cpp index b7b8e919ad..e051178a47 100644 --- a/src/gui/text/qabstracttextdocumentlayout.cpp +++ b/src/gui/text/qabstracttextdocumentlayout.cpp @@ -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); } /*! -- cgit v1.2.3