forked from qt-creator/qt-creator
Doc: fix function signatures in code documentation
QDoc cannot find functions if the signature in the \fn command is not identical to the declaration, including 'const' qualifiers. Removed the \fn where the documentation comes immediately before the function, as qdoc does not need it in that case. Change-Id: If6a2a2e2d58b394905c803787d2a93489049e4ca Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -213,7 +213,8 @@ enum { debugLeaks = 0 };
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn T *PluginManager::getObject() const
|
||||
\fn T *PluginManager::getObject()
|
||||
|
||||
Retrieve the object of a given type from the object pool.
|
||||
This method is aware of Aggregation::Aggregate, i.e. it uses
|
||||
the Aggregation::query methods instead of qobject_cast to
|
||||
@@ -225,7 +226,7 @@ enum { debugLeaks = 0 };
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn QList<T *> PluginManager::getObjects() const
|
||||
\fn QList<T *> PluginManager::getObjects()
|
||||
Retrieve all objects of a given type from the object pool.
|
||||
This method is aware of Aggregation::Aggregate, i.e. it uses
|
||||
the Aggregation::query methods instead of qobject_cast to
|
||||
@@ -245,7 +246,6 @@ static bool lessThanByPluginName(const PluginSpec *one, const PluginSpec *two)
|
||||
PluginManager *PluginManager::m_instance = 0;
|
||||
|
||||
/*!
|
||||
\fn PluginManager *PluginManager::instance()
|
||||
Get the unique plugin manager instance.
|
||||
*/
|
||||
PluginManager *PluginManager::instance()
|
||||
@@ -254,7 +254,6 @@ PluginManager *PluginManager::instance()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn PluginManager::PluginManager()
|
||||
Create a plugin manager. Should be done only once per application.
|
||||
*/
|
||||
PluginManager::PluginManager()
|
||||
@@ -264,7 +263,6 @@ PluginManager::PluginManager()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn PluginManager::~PluginManager()
|
||||
\internal
|
||||
*/
|
||||
PluginManager::~PluginManager()
|
||||
@@ -274,7 +272,6 @@ PluginManager::~PluginManager()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void PluginManager::addObject(QObject *obj)
|
||||
Add the given object \a obj to the object pool, so it can be retrieved again from the pool by type.
|
||||
The plugin manager does not do any memory management - added objects
|
||||
must be removed from the pool and deleted manually by whoever is responsible for the object.
|
||||
@@ -291,7 +288,6 @@ void PluginManager::addObject(QObject *obj)
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void PluginManager::removeObject(QObject *obj)
|
||||
Emits aboutToRemoveObject() and removes the object \a obj from the object pool.
|
||||
\sa PluginManager::addObject()
|
||||
*/
|
||||
@@ -301,7 +297,6 @@ void PluginManager::removeObject(QObject *obj)
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn QList<QObject *> PluginManager::allObjects() const
|
||||
Retrieve the list of all objects in the pool, unfiltered.
|
||||
Usually clients do not need to call this.
|
||||
\sa PluginManager::getObject()
|
||||
@@ -313,7 +308,6 @@ QList<QObject *> PluginManager::allObjects()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void PluginManager::loadPlugins()
|
||||
Tries to load all the plugins that were previously found when
|
||||
setting the plugin search paths. The plugin specs of the plugins
|
||||
can be used to retrieve error and state information about individual plugins.
|
||||
@@ -327,7 +321,6 @@ void PluginManager::loadPlugins()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn bool PluginManager::hasError() const
|
||||
Returns true if any plugin has errors even though it is enabled.
|
||||
Most useful to call after loadPlugins().
|
||||
*/
|
||||
@@ -342,7 +335,6 @@ bool PluginManager::hasError()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void PluginManager::shutdown()
|
||||
Shuts down and deletes all plugins.
|
||||
*/
|
||||
void PluginManager::shutdown()
|
||||
@@ -351,7 +343,6 @@ void PluginManager::shutdown()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn QStringList PluginManager::pluginPaths() const
|
||||
The list of paths were the plugin manager searches for plugins.
|
||||
|
||||
\sa setPluginPaths()
|
||||
@@ -362,7 +353,6 @@ QStringList PluginManager::pluginPaths()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void PluginManager::setPluginPaths(const QStringList &paths)
|
||||
Sets the plugin search paths, i.e. the file system paths where the plugin manager
|
||||
looks for plugin descriptions. All given \a paths and their sub directory trees
|
||||
are searched for plugin xml description files.
|
||||
@@ -376,7 +366,6 @@ void PluginManager::setPluginPaths(const QStringList &paths)
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn QString PluginManager::fileExtension() const
|
||||
The file extension of plugin description files.
|
||||
The default is "xml".
|
||||
|
||||
@@ -388,7 +377,6 @@ QString PluginManager::fileExtension()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void PluginManager::setFileExtension(const QString &extension)
|
||||
Sets the file extension of plugin description files.
|
||||
The default is "xml".
|
||||
At the moment this must be called before setPluginPaths() is called.
|
||||
@@ -439,7 +427,6 @@ void PluginManager::writeSettings()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn QStringList PluginManager::arguments() const
|
||||
The arguments left over after parsing (Neither startup nor plugin
|
||||
arguments). Typically, this will be the list of files to open.
|
||||
*/
|
||||
@@ -449,7 +436,6 @@ QStringList PluginManager::arguments()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn QList<PluginSpec *> PluginManager::plugins() const
|
||||
List of all plugin specifications that have been found in the plugin search paths.
|
||||
This list is valid directly after the setPluginPaths() call.
|
||||
The plugin specifications contain the information from the plugins' xml description files
|
||||
@@ -469,8 +455,6 @@ QHash<QString, PluginCollection *> PluginManager::pluginCollections()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn QString PluginManager::serializedArguments() const
|
||||
|
||||
Serialize plugin options and arguments for sending in a single string
|
||||
via QtSingleApplication:
|
||||
":myplugin|-option1|-option2|:arguments|argument1|argument2",
|
||||
@@ -532,8 +516,6 @@ static QStringList subList(const QStringList &in, const QString &key)
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn PluginManager::remoteArguments(const QString &argument, QObject *socket)
|
||||
|
||||
Parses the options encoded by serializedArguments() const
|
||||
and passes them on to the respective plugins along with the arguments.
|
||||
|
||||
@@ -562,7 +544,6 @@ void PluginManager::remoteArguments(const QString &serializedArgument, QObject *
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn bool PluginManager::parseOptions(const QStringList &args, const QMap<QString, bool> &appOptions, QMap<QString, QString> *foundAppOptions, QString *errorString)
|
||||
Takes the list of command line options in \a args and parses them.
|
||||
The plugin manager itself might process some options itself directly (-noload <plugin>), and
|
||||
adds options that are registered by plugins to their plugin specs.
|
||||
@@ -611,8 +592,6 @@ static inline void formatOption(QTextStream &str,
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn static PluginManager::formatOptions(QTextStream &str, int optionIndentation, int descriptionIndentation)
|
||||
|
||||
Format the startup options of the plugin manager for command line help.
|
||||
*/
|
||||
|
||||
@@ -638,8 +617,6 @@ void PluginManager::formatOptions(QTextStream &str, int optionIndentation, int d
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn PluginManager::formatPluginOptions(QTextStream &str, int optionIndentation, int descriptionIndentation) const
|
||||
|
||||
Format the plugin options of the plugin specs for command line help.
|
||||
*/
|
||||
|
||||
@@ -660,8 +637,6 @@ void PluginManager::formatPluginOptions(QTextStream &str, int optionIndentation,
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn PluginManager::formatPluginVersions(QTextStream &str) const
|
||||
|
||||
Format the version of the plugin specs for command line help.
|
||||
*/
|
||||
|
||||
@@ -747,7 +722,6 @@ void PluginManager::startTests()
|
||||
}
|
||||
|
||||
/*!
|
||||
* \fn bool PluginManager::runningTests() const
|
||||
* \internal
|
||||
*/
|
||||
bool PluginManager::testRunRequested()
|
||||
@@ -756,7 +730,6 @@ bool PluginManager::testRunRequested()
|
||||
}
|
||||
|
||||
/*!
|
||||
* \fn QString PluginManager::testDataDirectory() const
|
||||
* \internal
|
||||
*/
|
||||
QString PluginManager::testDataDirectory()
|
||||
@@ -772,8 +745,6 @@ QString PluginManager::testDataDirectory()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void PluginManager::profilingReport(const char *what, const PluginSpec *spec = 0)
|
||||
|
||||
Create a profiling entry showing the elapsed time if profiling is activated.
|
||||
*/
|
||||
|
||||
@@ -784,8 +755,6 @@ void PluginManager::profilingReport(const char *what, const PluginSpec *spec)
|
||||
|
||||
|
||||
/*!
|
||||
\fn void PluginManager::loadQueue()
|
||||
|
||||
Returns a list of plugins in load order.
|
||||
*/
|
||||
QList<PluginSpec *> PluginManager::loadQueue()
|
||||
@@ -796,7 +765,6 @@ QList<PluginSpec *> PluginManager::loadQueue()
|
||||
//============PluginManagerPrivate===========
|
||||
|
||||
/*!
|
||||
\fn PluginSpec *PluginManagerPrivate::createSpec()
|
||||
\internal
|
||||
*/
|
||||
PluginSpec *PluginManagerPrivate::createSpec()
|
||||
@@ -805,7 +773,6 @@ PluginSpec *PluginManagerPrivate::createSpec()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void PluginManagerPrivate::setSettings(QSettings *settings)
|
||||
\internal
|
||||
*/
|
||||
void PluginManagerPrivate::setSettings(QSettings *s)
|
||||
@@ -830,7 +797,6 @@ void PluginManagerPrivate::setGlobalSettings(QSettings *s)
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn PluginSpecPrivate *PluginManagerPrivate::privateSpec(PluginSpec *spec)
|
||||
\internal
|
||||
*/
|
||||
PluginSpecPrivate *PluginManagerPrivate::privateSpec(PluginSpec *spec)
|
||||
@@ -859,7 +825,6 @@ void PluginManagerPrivate::nextDelayedInitialize()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn PluginManagerPrivate::PluginManagerPrivate(PluginManager *pluginManager)
|
||||
\internal
|
||||
*/
|
||||
PluginManagerPrivate::PluginManagerPrivate(PluginManager *pluginManager) :
|
||||
@@ -876,7 +841,6 @@ PluginManagerPrivate::PluginManagerPrivate(PluginManager *pluginManager) :
|
||||
|
||||
|
||||
/*!
|
||||
\fn PluginManagerPrivate::~PluginManagerPrivate()
|
||||
\internal
|
||||
*/
|
||||
PluginManagerPrivate::~PluginManagerPrivate()
|
||||
@@ -886,7 +850,6 @@ PluginManagerPrivate::~PluginManagerPrivate()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void PluginManagerPrivate::writeSettings()
|
||||
\internal
|
||||
*/
|
||||
void PluginManagerPrivate::writeSettings()
|
||||
@@ -907,7 +870,6 @@ void PluginManagerPrivate::writeSettings()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void PluginManagerPrivate::readSettings()
|
||||
\internal
|
||||
*/
|
||||
void PluginManagerPrivate::readSettings()
|
||||
@@ -921,7 +883,6 @@ void PluginManagerPrivate::readSettings()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void PluginManagerPrivate::stopAll()
|
||||
\internal
|
||||
*/
|
||||
void PluginManagerPrivate::stopAll()
|
||||
@@ -938,7 +899,6 @@ void PluginManagerPrivate::stopAll()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void PluginManagerPrivate::deleteAll()
|
||||
\internal
|
||||
*/
|
||||
void PluginManagerPrivate::deleteAll()
|
||||
@@ -952,7 +912,6 @@ void PluginManagerPrivate::deleteAll()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void PluginManagerPrivate::addObject(QObject *obj)
|
||||
\internal
|
||||
*/
|
||||
void PluginManagerPrivate::addObject(QObject *obj)
|
||||
@@ -984,7 +943,6 @@ void PluginManagerPrivate::addObject(QObject *obj)
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void PluginManagerPrivate::removeObject(QObject *obj)
|
||||
\internal
|
||||
*/
|
||||
void PluginManagerPrivate::removeObject(QObject *obj)
|
||||
@@ -1008,7 +966,6 @@ void PluginManagerPrivate::removeObject(QObject *obj)
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void PluginManagerPrivate::loadPlugins()
|
||||
\internal
|
||||
*/
|
||||
void PluginManagerPrivate::loadPlugins()
|
||||
@@ -1039,7 +996,6 @@ void PluginManagerPrivate::loadPlugins()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void PluginManagerPrivate::shutdown()
|
||||
\internal
|
||||
*/
|
||||
void PluginManagerPrivate::shutdown()
|
||||
@@ -1055,7 +1011,6 @@ void PluginManagerPrivate::shutdown()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void PluginManagerPrivate::asyncShutdownFinished()
|
||||
\internal
|
||||
*/
|
||||
void PluginManagerPrivate::asyncShutdownFinished()
|
||||
@@ -1068,7 +1023,6 @@ void PluginManagerPrivate::asyncShutdownFinished()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void PluginManagerPrivate::loadQueue()
|
||||
\internal
|
||||
*/
|
||||
QList<PluginSpec *> PluginManagerPrivate::loadQueue()
|
||||
@@ -1082,7 +1036,6 @@ QList<PluginSpec *> PluginManagerPrivate::loadQueue()
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn bool PluginManagerPrivate::loadQueue(PluginSpec *spec, QList<PluginSpec *> &queue, QList<PluginSpec *> &circularityCheckQueue)
|
||||
\internal
|
||||
*/
|
||||
bool PluginManagerPrivate::loadQueue(PluginSpec *spec, QList<PluginSpec *> &queue,
|
||||
@@ -1125,7 +1078,6 @@ bool PluginManagerPrivate::loadQueue(PluginSpec *spec, QList<PluginSpec *> &queu
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void PluginManagerPrivate::loadPlugin(PluginSpec *spec, PluginSpec::State destState)
|
||||
\internal
|
||||
*/
|
||||
void PluginManagerPrivate::loadPlugin(PluginSpec *spec, PluginSpec::State destState)
|
||||
@@ -1192,7 +1144,6 @@ void PluginManagerPrivate::loadPlugin(PluginSpec *spec, PluginSpec::State destSt
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void PluginManagerPrivate::setPluginPaths(const QStringList &paths)
|
||||
\internal
|
||||
*/
|
||||
void PluginManagerPrivate::setPluginPaths(const QStringList &paths)
|
||||
@@ -1203,7 +1154,6 @@ void PluginManagerPrivate::setPluginPaths(const QStringList &paths)
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void PluginManagerPrivate::readPluginPaths()
|
||||
\internal
|
||||
*/
|
||||
void PluginManagerPrivate::readPluginPaths()
|
||||
@@ -1361,7 +1311,6 @@ void PluginManagerPrivate::profilingSummary() const
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void PluginManager::getObjectByName(const QString &name) const
|
||||
\brief Retrieves one object with a given name from the object pool.
|
||||
\sa addObject()
|
||||
*/
|
||||
@@ -1378,7 +1327,6 @@ QObject *PluginManager::getObjectByName(const QString &name)
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void PluginManager::getObjectByClassName(const QString &className) const
|
||||
Retrieves one object inheriting a class with a given name from the object pool.
|
||||
\sa addObject()
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user