doc: fix signatures and missing module headers
The update adds the moduleheader variable to the qdocconf file for qttestlib.qdocconf and qmake.qdocconf. The problem with qmake is that it doesn't have a module header file, but it does have qmake_pch.h, which is used here. This update also corrects several \fn commands in the qttestlib docs. Change-Id: I2202b9db96390bac1ee491ca8a99ca9010057ce3 Reviewed-by: Martin Smith <martin.smith@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
This commit is contained in:
parent
5cb54cb5eb
commit
c87ed145f1
@ -1,6 +1,7 @@
|
||||
include($QT_INSTALL_DOCS/global/qt-module-defaults.qdocconf)
|
||||
|
||||
project = QMake
|
||||
moduleheader = qmake_pch.h
|
||||
description = QMake Manual
|
||||
|
||||
qhp.projects = qmake
|
||||
|
@ -1,6 +1,7 @@
|
||||
include($QT_INSTALL_DOCS/global/qt-module-defaults.qdocconf)
|
||||
|
||||
project = QtTestLib
|
||||
moduleheader = QtTest
|
||||
description = Qt Test Reference Documentation
|
||||
version = $QT_VERSION
|
||||
|
||||
|
@ -75,9 +75,6 @@ QT_BEGIN_NAMESPACE
|
||||
namespace QTest
|
||||
{
|
||||
|
||||
/*!
|
||||
\internal
|
||||
*/
|
||||
template<> inline char *toString(const QColor &color)
|
||||
{
|
||||
return qstrdup(color.name(QColor::HexArgb).toLocal8Bit().constData());
|
||||
|
@ -64,9 +64,6 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace QTest
|
||||
{
|
||||
/*!
|
||||
\internal
|
||||
*/
|
||||
template<>
|
||||
inline char *toString<QHostAddress>(const QHostAddress &addr)
|
||||
{
|
||||
@ -83,9 +80,6 @@ inline char *toString<QHostAddress>(const QHostAddress &addr)
|
||||
return toString(addr.toString());
|
||||
}
|
||||
|
||||
/*!
|
||||
\internal
|
||||
*/
|
||||
inline char *toString(QNetworkReply::NetworkError code)
|
||||
{
|
||||
const QMetaObject *mo = &QNetworkReply::staticMetaObject;
|
||||
@ -97,17 +91,11 @@ inline char *toString(QNetworkReply::NetworkError code)
|
||||
return qstrdup(qme.valueToKey(code));
|
||||
}
|
||||
|
||||
/*!
|
||||
\internal
|
||||
*/
|
||||
inline char *toString(const QNetworkCookie &cookie)
|
||||
{
|
||||
return toString(cookie.toRawForm());
|
||||
}
|
||||
|
||||
/*!
|
||||
\internal
|
||||
*/
|
||||
inline char *toString(const QList<QNetworkCookie> &list)
|
||||
{
|
||||
QByteArray result = "QList(";
|
||||
|
@ -2293,7 +2293,7 @@ QTestData &QTest::addRow(const char *format, ...)
|
||||
return *tbl->newData(buf);
|
||||
}
|
||||
|
||||
/*! \fn void QTest::addColumn(const char *name, T *dummy = 0)
|
||||
/*! \fn template <typename T> void QTest::addColumn(const char *name, T *dummy = 0)
|
||||
|
||||
Adds a column with type \c{T} to the current test data.
|
||||
\a name is the name of the column. \a dummy is a workaround
|
||||
@ -2424,7 +2424,7 @@ bool QTest::compare_helper(bool success, const char *failureMsg,
|
||||
return QTestResult::compare(success, failureMsg, val1, val2, actual, expected, file, line);
|
||||
}
|
||||
|
||||
/*! \fn bool QTest::qCompare(float const &t1, float const &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn bool QTest::qCompare(const float &t1, const float &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
bool QTest::qCompare(float const &t1, float const &t2, const char *actual, const char *expected,
|
||||
@ -2434,7 +2434,7 @@ bool QTest::qCompare(float const &t1, float const &t2, const char *actual, const
|
||||
toString(t1), toString(t2), actual, expected, file, line);
|
||||
}
|
||||
|
||||
/*! \fn bool QTest::qCompare(double const &t1, double const &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn bool QTest::qCompare(const double &t1, const double &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
bool QTest::qCompare(double const &t1, double const &t2, const char *actual, const char *expected,
|
||||
@ -2444,11 +2444,11 @@ bool QTest::qCompare(double const &t1, double const &t2, const char *actual, con
|
||||
toString(t1), toString(t2), actual, expected, file, line);
|
||||
}
|
||||
|
||||
/*! \fn bool QTest::qCompare(double const &t1, float const &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn bool QTest::qCompare(const double &t1, const float &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(float const &t1, double const &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn bool QTest::qCompare(const float &t1, const double &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
@ -2545,6 +2545,30 @@ char *QTest::toString(const void *p)
|
||||
return msg;
|
||||
}
|
||||
|
||||
/*! \fn char *QTest::toString(const QColor &color)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn char *QTest::toString(const QRegion ®ion)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn char *QTest::toString(const QHostAddress &addr)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn char *QTest::toString(QNetworkReply::NetworkError code)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn char *QTest::toString(const QNetworkCookie &cookie)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn char *QTest::toString(const QList<QNetworkCookie> &list)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \internal
|
||||
*/
|
||||
bool QTest::compare_string_helper(const char *t1, const char *t2, const char *actual,
|
||||
@ -2559,51 +2583,59 @@ bool QTest::compare_string_helper(const char *t1, const char *t2, const char *ac
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::compare_ptr_helper(const void *t1, const void *t2, const char *actual, const char *expected, const char *file, int line);
|
||||
/*! \fn bool QTest::compare_ptr_helper(const volatile void *t1, const volatile void *t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(T1 const &, T2 const &, const char *, const char *, const char *, int);
|
||||
/*! \fn bool QTest::compare_ptr_helper(const volatile void *t1, std::nullptr_t, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(QIcon const &t1, QIcon const &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn bool QTest::compare_ptr_helper(std::nullptr_t, const volatile void *t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(QImage const &t1, QImage const &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn template <typename T1, typename T2> bool QTest::qCompare(const T1 &t1, const T2 &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(QPixmap const &t1, QPixmap const &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn bool QTest::qCompare(const QIcon &t1, const QIcon &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(T const &t1, T const &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn bool QTest::qCompare(const QImage &t1, const QImage &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(const T *t1, const T *t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn bool QTest::qCompare(const QPixmap &t1, const QPixmap &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(T *t, std::nullptr_t, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn template <typename T> bool QTest::qCompare(const T &t1, const T &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(std::nullptr_t, T *t, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn template <typename T> bool QTest::qCompare(const T *t1, const T *t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(T *t1, T *t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn template <typename T> bool QTest::qCompare(T *t, std::nullptr_t, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(const T1 *t1, const T2 *t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn template <typename T> bool QTest::qCompare(std::nullptr_t, T *t, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(T1 *t1, T2 *t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn template <typename T> bool QTest::qCompare(T *t1, T *t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn template <typename T1, typename T2> bool QTest::qCompare(const T1 *t1, const T2 *t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn template <typename T1, typename T2> bool QTest::qCompare(T1 *t1, T2 *t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
@ -2623,55 +2655,55 @@ bool QTest::compare_string_helper(const char *t1, const char *t2, const char *ac
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(QString const &t1, QLatin1String const &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn bool QTest::qCompare(const QString &t1, const QLatin1String &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(QLatin1String const &t1, QString const &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn bool QTest::qCompare(const QLatin1String &t1, const QString &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(QStringList const &t1, QStringList const &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn bool QTest::qCompare(const QStringList &t1, const QStringList &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(QList<T> const &t1, QList<T> const &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn template <typename T> bool QTest::qCompare(const QList<T> &t1, const QList<T> &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(QFlags<T> const &t1, T const &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn template <typename T> bool QTest::qCompare(const QFlags<T> &t1, const T &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(QFlags<T> const &t1, int const &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn template <typename T> bool QTest::qCompare(const QFlags<T> &t1, const int &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(qint64 const &t1, qint32 const &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn bool QTest::qCompare(const qint64 &t1, const qint32 &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(qint64 const &t1, quint32 const &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn bool QTest::qCompare(const qint64 &t1, const quint32 &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(quint64 const &t1, quint32 const &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn bool QTest::qCompare(const quint64 &t1, const quint32 &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(qint32 const &t1, qint64 const &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn bool QTest::qCompare(const qint32 &t1, const qint64 &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(quint32 const &t1, qint64 const &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn bool QTest::qCompare(const quint32 &t1, const qint64 &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qCompare(quint32 const &t1, quint64 const &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
/*! \fn bool QTest::qCompare(const quint32 &t1, const quint64 &t2, const char *actual, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*! \fn bool QTest::qTest(const T& actual, const char *elementName, const char *actualStr, const char *expected, const char *file, int line)
|
||||
/*! \fn template <typename T> bool QTest::qTest(const T& actual, const char *elementName, const char *actualStr, const char *expected, const char *file, int line)
|
||||
\internal
|
||||
*/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user