Fix a number of qdoc warnings
- Remove obsolete functions and enumeration values - Remove QObject * parameter from QMetaProperty accessors - Fix renamed enumerations in QSsl - Fix list items to be \li - Fix function signatures and variable names Change-Id: I37c7e6bf2c8ff92bc7b82620bae0a27796f866ab Reviewed-by: Paul Wicking <paul.wicking@qt.io>
This commit is contained in:
parent
1f1f000327
commit
92d4d490fe
@ -3246,6 +3246,7 @@
|
||||
\l {QEvent::MouseButtonDblClick}{MouseButtonDblClick} event from this event. The flag is set in the causing
|
||||
\l {QEvent::MouseButtonPress}{MouseButtonPress}, and not in the resulting \l {QEvent::MouseButtonDblClick}{MouseButtonDblClick}.
|
||||
|
||||
\omitvalue NoMouseEventFlag
|
||||
\omitvalue MouseEventFlagMask
|
||||
*/
|
||||
|
||||
|
@ -357,18 +357,6 @@ QFile::setFileName(const QString &name)
|
||||
\sa decodeName()
|
||||
*/
|
||||
|
||||
/*!
|
||||
\typedef QFile::EncoderFn
|
||||
\obsolete
|
||||
|
||||
This is a typedef for a pointer to a function with the following
|
||||
signature:
|
||||
|
||||
\snippet code/src_corelib_io_qfile.cpp 1
|
||||
|
||||
\sa setEncodingFunction(), encodeName()
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn QString QFile::decodeName(const QByteArray &localFileName)
|
||||
|
||||
@ -377,39 +365,6 @@ QFile::setFileName(const QString &name)
|
||||
\sa encodeName()
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn void QFile::setEncodingFunction(EncoderFn function)
|
||||
\obsolete
|
||||
|
||||
This function does nothing. It is provided for compatibility with Qt 4 code
|
||||
that attempted to set a different encoding function for file names. That
|
||||
feature is flawed and no longer supported in Qt 5.
|
||||
|
||||
\sa encodeName(), setDecodingFunction()
|
||||
*/
|
||||
|
||||
/*!
|
||||
\typedef QFile::DecoderFn
|
||||
|
||||
This is a typedef for a pointer to a function with the following
|
||||
signature:
|
||||
|
||||
\snippet code/src_corelib_io_qfile.cpp 2
|
||||
|
||||
\sa setDecodingFunction()
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn void QFile::setDecodingFunction(DecoderFn function)
|
||||
\obsolete
|
||||
|
||||
This function does nothing. It is provided for compatibility with Qt 4 code
|
||||
that attempted to set a different decoding function for file names. That
|
||||
feature is flawed and no longer supported in Qt 5.
|
||||
|
||||
\sa setEncodingFunction(), decodeName()
|
||||
*/
|
||||
|
||||
/*!
|
||||
\overload
|
||||
|
||||
|
@ -589,10 +589,6 @@ QString QStandardPaths::displayName(StandardLocation type)
|
||||
}
|
||||
#endif
|
||||
|
||||
/*!
|
||||
\fn void QStandardPaths::enableTestMode(bool testMode)
|
||||
\obsolete Use QStandardPaths::setTestModeEnabled
|
||||
*/
|
||||
/*!
|
||||
\fn void QStandardPaths::setTestModeEnabled(bool testMode)
|
||||
|
||||
|
@ -3012,27 +3012,6 @@ QByteArray QUrl::toPercentEncoding(const QString &input, const QByteArray &exclu
|
||||
return input.toUtf8().toPercentEncoding(exclude, include);
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn QByteArray QUrl::toPunycode(const QString &uc)
|
||||
\obsolete
|
||||
Returns a \a uc in Punycode encoding.
|
||||
|
||||
Punycode is a Unicode encoding used for internationalized domain
|
||||
names, as defined in RFC3492. If you want to convert a domain name from
|
||||
Unicode to its ASCII-compatible representation, use toAce().
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn QString QUrl::fromPunycode(const QByteArray &pc)
|
||||
\obsolete
|
||||
Returns the Punycode decoded representation of \a pc.
|
||||
|
||||
Punycode is a Unicode encoding used for internationalized domain
|
||||
names, as defined in RFC3492. If you want to convert a domain from
|
||||
its ASCII-compatible encoding to the Unicode representation, use
|
||||
fromAce().
|
||||
*/
|
||||
|
||||
/*!
|
||||
\since 4.2
|
||||
|
||||
|
@ -247,24 +247,6 @@ QAbstractEventDispatcher *QAbstractEventDispatcher::instance(QThread *thread)
|
||||
implementation.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\obsolete
|
||||
|
||||
\fn int QAbstractEventDispatcher::registerTimer(int interval, QObject *object)
|
||||
|
||||
Registers a timer with the specified \a interval for the given \a object
|
||||
and returns the timer id.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\obsolete
|
||||
|
||||
\fn void QAbstractEventDispatcher::registerTimer(int timerId, int interval, QObject *object)
|
||||
|
||||
Register a timer with the specified \a timerId and \a interval for the
|
||||
given \a object.
|
||||
*/
|
||||
|
||||
/*!
|
||||
Registers a timer with the specified \a interval and \a timerType for the
|
||||
given \a object and returns the timer id.
|
||||
@ -495,15 +477,6 @@ bool QAbstractEventDispatcher::filterNativeEvent(const QByteArray &eventType, vo
|
||||
return false;
|
||||
}
|
||||
|
||||
/*! \fn bool QAbstractEventDispatcher::filterEvent(void *message)
|
||||
\deprecated
|
||||
|
||||
Calls filterNativeEvent() with an empty eventType and \a message.
|
||||
This function returns \c true as soon as an
|
||||
event filter returns \c true, and false otherwise to indicate that
|
||||
the processing of the event should continue.
|
||||
*/
|
||||
|
||||
/*! \fn bool QAbstractEventDispatcher::registerEventNotifier(QWinEventNotifier *notifier)
|
||||
|
||||
This pure virtual method exists on windows only and has to be reimplemented by a Windows specific
|
||||
|
@ -1929,21 +1929,6 @@ bool QCoreApplication::event(QEvent *e)
|
||||
return QObject::event(e);
|
||||
}
|
||||
|
||||
/*! \enum QCoreApplication::Encoding
|
||||
\obsolete
|
||||
|
||||
This enum type used to define the 8-bit encoding of character string
|
||||
arguments to translate(). This enum is now obsolete and UTF-8 will be
|
||||
used in all cases.
|
||||
|
||||
\value UnicodeUTF8 UTF-8.
|
||||
\omitvalue Latin1
|
||||
\omitvalue DefaultCodec \omit UTF-8. \endomit
|
||||
\omitvalue CodecForTr
|
||||
|
||||
\sa QObject::tr(), QString::fromUtf8()
|
||||
*/
|
||||
|
||||
void QCoreApplicationPrivate::ref()
|
||||
{
|
||||
quitLockRef.ref();
|
||||
@ -2178,11 +2163,6 @@ QString QCoreApplication::translate(const char *context, const char *sourceText,
|
||||
return result;
|
||||
}
|
||||
|
||||
/*! \fn static QString QCoreApplication::translate(const char *context, const char *key, const char *disambiguation, Encoding encoding, int n = -1)
|
||||
|
||||
\obsolete
|
||||
*/
|
||||
|
||||
// Declared in qglobal.h
|
||||
QString qtTrId(const char *id, int n)
|
||||
{
|
||||
|
@ -3389,12 +3389,8 @@ bool QMetaProperty::isWritable() const
|
||||
|
||||
|
||||
/*!
|
||||
Returns \c true if this property is designable;
|
||||
otherwise returns \c false.
|
||||
|
||||
If no \a object is given, the function returns \c false if the
|
||||
\c{Q_PROPERTY()}'s \c DESIGNABLE attribute is false; otherwise
|
||||
returns \c true.
|
||||
Returns \c false if the \c{Q_PROPERTY()}'s \c DESIGNABLE attribute
|
||||
is false; otherwise returns \c true.
|
||||
|
||||
\sa isScriptable(), isStored()
|
||||
*/
|
||||
@ -3406,12 +3402,8 @@ bool QMetaProperty::isDesignable() const
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns \c true if the property is scriptable;
|
||||
otherwise returns \c false.
|
||||
|
||||
If no \a object is given, the function returns \c false if the
|
||||
\c{Q_PROPERTY()}'s \c SCRIPTABLE attribute is false; otherwise returns
|
||||
true.
|
||||
Returns \c false if the \c{Q_PROPERTY()}'s \c SCRIPTABLE attribute
|
||||
is false; otherwise returns true.
|
||||
|
||||
\sa isDesignable(), isStored()
|
||||
*/
|
||||
@ -3440,15 +3432,10 @@ bool QMetaProperty::isStored() const
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns \c true if this property is designated as the \c USER
|
||||
property, i.e., the one that the user can edit or
|
||||
that is significant in some other way. Otherwise it returns
|
||||
false. e.g., the \c text property is the \c USER editable property
|
||||
of a QLineEdit.
|
||||
|
||||
If \a object is \nullptr, the function returns \c false if the \c
|
||||
{Q_PROPERTY()}'s \c USER attribute is false. Otherwise it returns
|
||||
true.
|
||||
Returns \c false if the \c {Q_PROPERTY()}'s \c USER attribute is false.
|
||||
Otherwise it returns true, indicating the property is designated as the
|
||||
\c USER property, i.e., the one that the user can edit or
|
||||
that is significant in some other way.
|
||||
|
||||
\sa QMetaObject::userProperty(), isDesignable(), isScriptable()
|
||||
*/
|
||||
|
@ -2274,33 +2274,6 @@ void QObject::deleteLater()
|
||||
\sa QCoreApplication::translate(), {Internationalization with Qt}
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn QString QObject::trUtf8(const char *sourceText, const char *disambiguation, int n)
|
||||
\reentrant
|
||||
\obsolete
|
||||
|
||||
Returns a translated version of \a sourceText, or
|
||||
QString::fromUtf8(\a sourceText) if there is no appropriate
|
||||
version. It is otherwise identical to tr(\a sourceText, \a
|
||||
disambiguation, \a n).
|
||||
|
||||
\warning This method is reentrant only if all translators are
|
||||
installed \e before calling this method. Installing or removing
|
||||
translators while performing translations is not supported. Doing
|
||||
so will probably result in crashes or other undesirable behavior.
|
||||
|
||||
\warning For portability reasons, we recommend that you use
|
||||
escape sequences for specifying non-ASCII characters in string
|
||||
literals to trUtf8(). For example:
|
||||
|
||||
\snippet code/src_corelib_kernel_qobject.cpp 20
|
||||
|
||||
\sa tr(), QCoreApplication::translate(), {Internationalization with Qt}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
Signals and slots
|
||||
*****************************************************************************/
|
||||
|
@ -3714,9 +3714,9 @@ bool QVariant::convert(const int type, void *ptr) const
|
||||
exceptions:
|
||||
|
||||
\list
|
||||
\i If both types are numeric types (integers and floatins point numbers)
|
||||
\li If both types are numeric types (integers and floatins point numbers)
|
||||
Qt will compare those types using standard C++ type promotion rules.
|
||||
\i If one type is numeric and the other one a QString, Qt will try to
|
||||
\li If one type is numeric and the other one a QString, Qt will try to
|
||||
convert the QString to a matching numeric type and if successful compare
|
||||
those.
|
||||
\endlist
|
||||
@ -3735,9 +3735,9 @@ bool QVariant::convert(const int type, void *ptr) const
|
||||
exceptions:
|
||||
|
||||
\list
|
||||
\i If both types are numeric types (integers and floatins point numbers)
|
||||
\li If both types are numeric types (integers and floatins point numbers)
|
||||
Qt will compare those types using standard C++ type promotion rules.
|
||||
\i If one type is numeric and the other one a QString, Qt will try to
|
||||
\li If one type is numeric and the other one a QString, Qt will try to
|
||||
convert the QString to a matching numeric type and if successful compare
|
||||
those.
|
||||
\endlist
|
||||
|
@ -2544,7 +2544,7 @@ qsizetype QtPrivate::count(QByteArrayView haystack, QByteArrayView needle) noexc
|
||||
return num;
|
||||
}
|
||||
|
||||
/*! \fn int QByteArray::count(QByteArrayView &bv) const
|
||||
/*! \fn int QByteArray::count(const QByteArrayView &bv) const
|
||||
\since 6.0
|
||||
|
||||
Returns the number of (potentially overlapping) occurrences of the
|
||||
|
@ -209,14 +209,6 @@
|
||||
\sa QMutableListIterator, QList::const_iterator
|
||||
*/
|
||||
|
||||
/*!
|
||||
\class QVectorIterator
|
||||
\inmodule QtCore
|
||||
\brief QVectorIterator is an alias for QListIterator.
|
||||
|
||||
Please see the QListIterator documentation for details.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\class QSetIterator
|
||||
\inmodule QtCore
|
||||
@ -330,14 +322,6 @@
|
||||
\sa QListIterator, QList::iterator
|
||||
*/
|
||||
|
||||
/*!
|
||||
\class QMutableVectorIterator
|
||||
\inmodule QtCore
|
||||
\brief QMutableVectorIterator is an alias for QMutableListIterator.
|
||||
|
||||
Please see the QMutableListIterator documentation for details.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\class QMutableSetIterator
|
||||
\inmodule QtCore
|
||||
|
@ -663,7 +663,7 @@ QDebug operator<<(QDebug dbg, const QMargins &m)
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn QMargins operator|(const QMargins &m1, const QMargins &m2)
|
||||
\fn QMarginsF operator|(const QMarginsF &m1, const QMarginsF &m2)
|
||||
\relates QMarginsF
|
||||
\overload
|
||||
|
||||
|
@ -194,17 +194,6 @@ QBitmap &QBitmap::operator=(const QPixmap &pixmap)
|
||||
return *this;
|
||||
}
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
|
||||
/*!
|
||||
Destroys the bitmap.
|
||||
*/
|
||||
QBitmap::~QBitmap()
|
||||
{
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/*!
|
||||
\fn void QBitmap::swap(QBitmap &other)
|
||||
\since 4.8
|
||||
|
@ -1361,15 +1361,6 @@ int QImage::depth() const
|
||||
return d ? d->depth : 0;
|
||||
}
|
||||
|
||||
/*!
|
||||
\obsolete
|
||||
\fn int QImage::numColors() const
|
||||
|
||||
Returns the size of the color table for the image.
|
||||
|
||||
\sa setColorCount()
|
||||
*/
|
||||
|
||||
/*!
|
||||
\since 4.6
|
||||
\fn int QImage::colorCount() const
|
||||
|
@ -134,16 +134,7 @@ static void qt_polygon_isect_line(const QPointF &p1, const QPointF &p2, const QP
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn QPolygon::QPolygon(int size)
|
||||
|
||||
Constructs a polygon of the given \a size. Creates an empty
|
||||
polygon if \a size == 0.
|
||||
|
||||
\sa QList::isEmpty()
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn QPolygon::QPolygon(const QPolygon &polygon)
|
||||
\fn QPolygon::QPolygon(const QPolygon &polygon) noexcept
|
||||
|
||||
Constructs a copy of the given \a polygon.
|
||||
|
||||
@ -197,14 +188,6 @@ QPolygon::QPolygon(int nPoints, const int *points)
|
||||
setPoints(nPoints, points);
|
||||
}
|
||||
|
||||
|
||||
/*!
|
||||
\fn QPolygon::~QPolygon()
|
||||
|
||||
Destroys the polygon.
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
Translates all points in the polygon by (\a{dx}, \a{dy}).
|
||||
|
||||
@ -532,7 +515,7 @@ QDebug operator<<(QDebug dbg, const QPolygon &a)
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn QPolygonF::QPolygonF(const QPolygonF &polygon)
|
||||
\fn QPolygonF::QPolygonF(const QPolygonF &polygon) noexcept
|
||||
|
||||
Constructs a copy of the given \a polygon.
|
||||
*/
|
||||
@ -580,13 +563,6 @@ QPolygonF::QPolygonF(const QPolygon &a)
|
||||
append(a.at(i));
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn QPolygonF::~QPolygonF()
|
||||
|
||||
Destroys the polygon.
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
Translate all points in the polygon by the given \a offset.
|
||||
|
||||
|
@ -97,6 +97,7 @@ static inline bool useDirectWrite(QFont::HintingPreference hintingPreference,
|
||||
/*!
|
||||
\struct QWindowsFontEngineData
|
||||
\brief Static constant data shared by the font engines.
|
||||
\internal
|
||||
*/
|
||||
|
||||
QWindowsFontEngineData::QWindowsFontEngineData()
|
||||
|
@ -323,7 +323,7 @@
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn void QSslSocket::alertSent(QAlertLevel level, QAlertType type, const QString &description)
|
||||
\fn void QSslSocket::alertSent(QSsl::AlertLevel level, QSsl::AlertType type, const QString &description)
|
||||
|
||||
QSslSocket emits this signal if an alert message was sent to a peer. \a level
|
||||
describes if it was a warning or a fatal error. \a type gives the code
|
||||
@ -334,11 +334,11 @@
|
||||
purposes, normally it does not require any actions from the application.
|
||||
\note Not all backends support this functionality.
|
||||
|
||||
\sa alertReceived(), QAlertLevel, QAlertType
|
||||
\sa alertReceived(), QSsl::AlertLevel, QSsl::AlertType
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn void QSslSocket::alertReceived(QAlertLevel level, QAlertType type, const QString &description)
|
||||
\fn void QSslSocket::alertReceived(QSsl::AlertLevel level, QSsl::AlertType type, const QString &description)
|
||||
|
||||
QSslSocket emits this signal if an alert message was received from a peer.
|
||||
\a level tells if the alert was fatal or it was a warning. \a type is the
|
||||
@ -350,7 +350,7 @@
|
||||
backend will handle it and close the connection.
|
||||
\note Not all backends support this functionality.
|
||||
|
||||
\sa alertSent(), QAlertLevel, QAlertType
|
||||
\sa alertSent(), QSsl::AlertLevel, QSsl::AlertType
|
||||
*/
|
||||
|
||||
/*!
|
||||
|
@ -90,15 +90,6 @@ public:
|
||||
\value UnknownError Unknown error.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn QSqlError::QSqlError(const QString &driverText, const QString &databaseText, ErrorType type, int number)
|
||||
\obsolete
|
||||
|
||||
Constructs an error containing the driver error text \a
|
||||
driverText, the database-specific error text \a databaseText, the
|
||||
type \a type and the optional error number \a number.
|
||||
*/
|
||||
|
||||
/*! \fn QSqlError::QSqlError(QSqlError &&other)
|
||||
Move-constructs a QSqlError instance, making it point at the same
|
||||
object that \a other was pointing to.
|
||||
|
@ -239,12 +239,6 @@ Q_GLOBAL_STATIC(QUrl, lastVisitedDir)
|
||||
\value HideNameFilterDetails Indicates if the file name filter details are
|
||||
hidden or not.
|
||||
|
||||
\value DontUseSheet In previous versions of Qt, the static
|
||||
functions would create a sheet by default if the static function
|
||||
was given a parent. This is no longer supported and does nothing in Qt 4.5, The
|
||||
static functions will always be an application modal dialog. If
|
||||
you want to use sheets, use QFileDialog::open() instead.
|
||||
|
||||
\value DontUseCustomDirectoryIcons Always use the default directory icon.
|
||||
Some platforms allow the user to set a different icon. Custom icon lookup
|
||||
cause a big performance impact over network or removable drives.
|
||||
|
@ -2833,7 +2833,7 @@ bool QHeaderView::viewportEvent(QEvent *e)
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn void QHeaderView::initStyleOptionForIndex(QStyleOptionHeader *option, int logicalIndex)
|
||||
\fn void QHeaderView::initStyleOptionForIndex(QStyleOptionHeader *option, int logicalIndex) const
|
||||
\since 6.0
|
||||
|
||||
Initializes the style \a option from the specified \a logicalIndex.
|
||||
|
@ -2506,10 +2506,10 @@ QScreen *QWidget::screen() const
|
||||
window will get recreated on \a screen.
|
||||
|
||||
\note If the screen is part of a virtual desktop of multiple screens,
|
||||
the window will not move automatically to \a newScreen. To place the
|
||||
the window will not move automatically to \a screen. To place the
|
||||
window relative to the screen, use the screen's topLeft() position.
|
||||
|
||||
\sa QWindow::setScreen
|
||||
\sa QWindow::setScreen()
|
||||
*/
|
||||
void QWidget::setScreen(QScreen *screen)
|
||||
{
|
||||
|
@ -637,8 +637,6 @@ void QStyle::drawItemPixmap(QPainter *painter, const QRect &rect, int alignment,
|
||||
primitive element is a common GUI element, such as a checkbox
|
||||
indicator or button bevel.
|
||||
|
||||
\omitvalue PE_IndicatorViewItemCheck
|
||||
|
||||
\value PE_PanelButtonCommand Button used to initiate an action, for
|
||||
example, a QPushButton.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user