Doc: Replace obsolete types with their newer counterparts

This patch ignores:
- Docs for obsolete types themselves
- Comparisons between new and obsolete types

Change-Id: Id9b1e628255113e7c44520abe0f8a4e0db4a283d
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
This commit is contained in:
Sze Howe Koh 2014-02-15 11:54:53 +08:00 committed by The Qt Project
parent 6a7747f30c
commit b648195c31
8 changed files with 33 additions and 33 deletions

View File

@ -83,7 +83,7 @@
\snippet tools/treemodelcompleter/treemodelcompleter.cpp 2
As mentioned earlier, the \c splitPath() function is reimplemented because
the default implementation is more suited to QDirModel or list models. In
the default implementation is more suited to QFileSystemModel or list models. In
order for QCompleter to split the path into a list of strings that are
matched at each level, we split it using QString::split() with \c sep as its
separator.

View File

@ -743,7 +743,7 @@ Q_STATIC_ASSERT_X(UCHAR_MAX == 255, "Qt assumes that char is 8 bits");
\relates <QtGlobal>
This enum describes the messages that can be sent to a message
handler (QtMsgHandler). You can use the enum to identify and
handler (QtMessageHandler). You can use the enum to identify and
associate the various message types with the appropriate
actions.

View File

@ -2606,16 +2606,16 @@ void QSortFilterProxyModel::invalidateFilter()
the following QVariant types:
\list
\li QVariant::Int
\li QVariant::UInt
\li QVariant::LongLong
\li QVariant::ULongLong
\li QVariant::Double
\li QVariant::Char
\li QVariant::Date
\li QVariant::Time
\li QVariant::DateTime
\li QVariant::String
\li QMetaType::Int
\li QMetaType::UInt
\li QMetaType::LongLong
\li QMetaType::ULongLong
\li QMetaType::Double
\li QMetaType::QChar
\li QMetaType::QDate
\li QMetaType::QTime
\li QMetaType::QDateTime
\li QMetaType::QString
\endlist
Any other type will be converted to a QString using

View File

@ -260,8 +260,8 @@ QJsonDocument QJsonDocument::fromBinaryData(const QByteArray &data, DataValidati
/*!
Creates a QJsonDocument from the QVariant \a variant.
If the \a variant contains any other type than a QVariant::Map,
QVariant::List or QVariant::StringList, the returned document
If the \a variant contains any other type than a QVariantMap,
QVariantList or QStringList, the returned document
document is invalid.
\sa toVariant()

View File

@ -344,16 +344,16 @@ QJsonValue &QJsonValue::operator =(const QJsonValue &other)
The conversion will convert QVariant types as follows:
\list
\li QVariant::Bool to Bool
\li QVariant::Int
\li QVariant::Double
\li QVariant::LongLong
\li QVariant::ULongLong
\li QVariant::UInt to Double
\li QVariant::String to String
\li QVariant::StringList
\li QVariant::VariantList to Array
\li QVariant::VariantMap to Object
\li QMetaType::Bool to Bool
\li QMetaType::Int
\li QMetaType::Double
\li QMetaType::LongLong
\li QMetaType::ULongLong
\li QMetaType::UInt to Double
\li QMetaType::QString to String
\li QMetaType::QStringList
\li QMetaType::QVariantList to Array
\li QMetaType::QVariantMap to Object
\endlist
For all other QVariant types a conversion to a QString will be attempted. If the returned string
@ -395,9 +395,9 @@ QJsonValue QJsonValue::fromVariant(const QVariant &variant)
The QJsonValue types will be converted as follows:
\value Null QVariant()
\value Bool QVariant::Bool
\value Double QVariant::Double
\value String QVariant::String
\value Bool QMetaType::Bool
\value Double QMetaType::Double
\value String QString
\value Array QVariantList
\value Object QVariantMap
\value Undefined QVariant()

View File

@ -1165,7 +1165,7 @@ Q_CORE_EXPORT void QVariantPrivate::registerHandler(const int /* Modules::Names
instead to construct variants from the pointer types represented by
\c QMetaType::VoidStar, and \c QMetaType::QObjectStar.
\sa QVariant::fromValue(), Type
\sa QVariant::fromValue(), QMetaType::Type
*/
/*!
@ -1765,7 +1765,7 @@ const char *QVariant::typeName() const
}
/*!
Convert this variant to type Invalid and free up any resources
Convert this variant to type QMetaType::UnknownType and free up any resources
used.
*/
void QVariant::clear()
@ -1781,7 +1781,7 @@ void QVariant::clear()
Converts the int representation of the storage type, \a typeId, to
its string representation.
Returns a null pointer if the type is QVariant::Invalid or doesn't exist.
Returns a null pointer if the type is QMetaType::UnknownType or doesn't exist.
*/
const char *QVariant::typeToName(int typeId)
{
@ -2019,7 +2019,7 @@ QDataStream& operator<<(QDataStream &s, const QVariant::Type p)
\fn bool QVariant::isValid() const
Returns \c true if the storage type of this variant is not
QVariant::Invalid; otherwise returns \c false.
QMetaType::UnknownType; otherwise returns \c false.
*/
template <typename T>

View File

@ -107,7 +107,7 @@ QT_BEGIN_NAMESPACE
\snippet shareddirmodel/main.cpp 7
The view's root index can be used to control how much of a
hierarchical model is displayed. QDirModel provides a convenience
hierarchical model is displayed. QFileSystemModel provides a convenience
function that returns a suitable model index for a path to a
directory within the model.

View File

@ -816,7 +816,7 @@
\row
\li Dir View
\li QTreeView
\li QDirModel
\li QFileSystemModel
\li Very small example to demonstrate how to assign a model to a view
\row
\li Editable Tree Model