path: root/src
diff options
Diffstat (limited to 'src')
7 files changed, 32 insertions, 32 deletions
diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp
index 0f1968d151..710f7e8ba1 100644
--- a/src/corelib/global/qglobal.cpp
+++ b/src/corelib/global/qglobal.cpp
@@ -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
diff --git a/src/corelib/itemmodels/qsortfilterproxymodel.cpp b/src/corelib/itemmodels/qsortfilterproxymodel.cpp
index ebc97ca2d9..1e377abf3e 100644
--- a/src/corelib/itemmodels/qsortfilterproxymodel.cpp
+++ b/src/corelib/itemmodels/qsortfilterproxymodel.cpp
@@ -2606,16 +2606,16 @@ void QSortFilterProxyModel::invalidateFilter()
the following QVariant types:
- \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
Any other type will be converted to a QString using
diff --git a/src/corelib/json/qjsondocument.cpp b/src/corelib/json/qjsondocument.cpp
index 6e257df39d..90ce8c63a5 100644
--- a/src/corelib/json/qjsondocument.cpp
+++ b/src/corelib/json/qjsondocument.cpp
@@ -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()
diff --git a/src/corelib/json/qjsonvalue.cpp b/src/corelib/json/qjsonvalue.cpp
index c16824ebd2..487a431b8f 100644
--- a/src/corelib/json/qjsonvalue.cpp
+++ b/src/corelib/json/qjsonvalue.cpp
@@ -344,16 +344,16 @@ QJsonValue &QJsonValue::operator =(const QJsonValue &other)
The conversion will convert QVariant types as follows:
- \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
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()
diff --git a/src/corelib/kernel/qvariant.cpp b/src/corelib/kernel/qvariant.cpp
index f7540dc20f..5e8f330a92 100644
--- a/src/corelib/kernel/qvariant.cpp
+++ b/src/corelib/kernel/qvariant.cpp
@@ -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
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>
diff --git a/src/widgets/dialogs/qfilesystemmodel.cpp b/src/widgets/dialogs/qfilesystemmodel.cpp
index 0b0f686564..c31a674cc7 100644
--- a/src/widgets/dialogs/qfilesystemmodel.cpp
+++ b/src/widgets/dialogs/qfilesystemmodel.cpp
@@ -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.
diff --git a/src/widgets/doc/src/modelview.qdoc b/src/widgets/doc/src/modelview.qdoc
index f094a58a91..3b33e21ec2 100644
--- a/src/widgets/doc/src/modelview.qdoc
+++ b/src/widgets/doc/src/modelview.qdoc
@@ -816,7 +816,7 @@
\li Dir View
\li QTreeView
- \li QDirModel
+ \li QFileSystemModel
\li Very small example to demonstrate how to assign a model to a view
\li Editable Tree Model