summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@qt.io>2018-01-10 15:40:48 +0100
committerMartin Smith <martin.smith@qt.io>2018-01-12 11:42:25 +0000
commitb426e00ebf930808dd714bb338f2fdfae9478b2a (patch)
tree89470ce6cbb3cd4faebbb505d9a748edb62d4dbb
parent485c21dcc962d52b833d31fb79c0625f65a5b50e (diff)
doc: Add template clause to \fn commands in qtoolbar.cpp
clang-qdoc requires the template clause in \fn commands for template functions. Change-Id: I838bae74102e99b64f04960ad88f192e45d901ba Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
-rw-r--r--src/widgets/widgets/qtoolbar.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/widgets/widgets/qtoolbar.cpp b/src/widgets/widgets/qtoolbar.cpp
index a00557c34e..7b6a2a329f 100644
--- a/src/widgets/widgets/qtoolbar.cpp
+++ b/src/widgets/widgets/qtoolbar.cpp
@@ -803,7 +803,7 @@ QAction *QToolBar::addAction(const QIcon &icon, const QString &text,
return action;
}
-/*!\fn QAction *QToolBar::addAction(const QString &text, const QObject *receiver, PointerToMemberFunction method)
+/*!\fn template<typename PointerToMemberFunction> QAction *QToolBar::addAction(const QString &text, const QObject *receiver, PointerToMemberFunction method)
\since 5.6
@@ -815,7 +815,7 @@ QAction *QToolBar::addAction(const QIcon &icon, const QString &text,
\a method of the \a receiver.
*/
-/*!\fn QAction *QToolBar::addAction(const QString &text, Functor functor)
+/*!\fn template<typename Functor> QAction *QToolBar::addAction(const QString &text, Functor functor)
\since 5.6
@@ -827,7 +827,7 @@ QAction *QToolBar::addAction(const QIcon &icon, const QString &text,
\a functor.
*/
-/*!\fn QAction *QToolBar::addAction(const QString &text, const QObject *context, Functor functor)
+/*!\fn template<typename Functor> QAction *QToolBar::addAction(const QString &text, const QObject *context, Functor functor)
\since 5.6
@@ -841,7 +841,7 @@ QAction *QToolBar::addAction(const QIcon &icon, const QString &text,
If \a context is destroyed, the functor will not be called.
*/
-/*!\fn QAction *QToolBar::addAction(const QIcon &icon, const QString &text, const QObject *receiver, PointerToMemberFunction method)
+/*!\fn template<typename PointerToMemberFunction> QAction *QToolBar::addAction(const QIcon &icon, const QString &text, const QObject *receiver, PointerToMemberFunction method)
\since 5.6
@@ -853,7 +853,7 @@ QAction *QToolBar::addAction(const QIcon &icon, const QString &text,
\a method of the \a receiver.
*/
-/*!\fn QAction *QToolBar::addAction(const QIcon &icon, const QString &text, Functor functor)
+/*!\fn template<typename Functor> QAction *QToolBar::addAction(const QIcon &icon, const QString &text, Functor functor)
\since 5.6
@@ -865,7 +865,7 @@ QAction *QToolBar::addAction(const QIcon &icon, const QString &text,
\a functor.
*/
-/*!\fn QAction *QToolBar::addAction(const QIcon &icon, const QString &text, const QObject *context, Functor functor)
+/*!\fn template<typename Functor> QAction *QToolBar::addAction(const QIcon &icon, const QString &text, const QObject *context, Functor functor)
\since 5.6