summaryrefslogtreecommitdiffstats
path: root/src/localesettings
diff options
context:
space:
mode:
Diffstat (limited to 'src/localesettings')
-rw-r--r--src/localesettings/localefiltermodel.cpp24
-rw-r--r--src/localesettings/localemodel.cpp16
2 files changed, 34 insertions, 6 deletions
diff --git a/src/localesettings/localefiltermodel.cpp b/src/localesettings/localefiltermodel.cpp
index 3a5d892..e3eecd4 100644
--- a/src/localesettings/localefiltermodel.cpp
+++ b/src/localesettings/localefiltermodel.cpp
@@ -32,8 +32,30 @@
QT_BEGIN_NAMESPACE
/*!
+ \module QtLocaleSettings
+ \qtvariable localesettings
+ \ingroup qtdevice-utilities-cpp-modules
+ \ingroup modules
+ \title Qt Locale Settings C++ Classes
+ \brief Provides functionality for controlling locale settings.
+
+ To use classes from this module, add this directive into the C++ files:
+
+ \code
+ #include <QtLocaleSettings>
+ \endcode
+
+ To link against the corresponding C++ libraries, add the following to your
+ qmake project file:
+
+ \code
+ QT += localesettings
+ \endcode
+*/
+
+/*!
\class LocaleFilterModel
- \inmodule QtDeviceUtilities
+ \inmodule QtLocaleSettings
\brief The LocaleFilterModel class provides a filtered model for the
available locales.
diff --git a/src/localesettings/localemodel.cpp b/src/localesettings/localemodel.cpp
index cd411f3..043376a 100644
--- a/src/localesettings/localemodel.cpp
+++ b/src/localesettings/localemodel.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2016 The Qt Company Ltd.
+** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Device Utilities module of the Qt Toolkit.
@@ -37,7 +37,7 @@ QT_BEGIN_NAMESPACE
/*!
\class LocaleItem
- \inmodule QtDeviceUtilities
+ \inmodule QtLocaleSettings
\brief The LocaleItem class represents a locale.
@@ -119,7 +119,7 @@ QString LocaleItem::code() const
/*!
\class LocaleModel
- \inmodule QtDeviceUtilities
+ \inmodule QtLocaleSettings
\brief The LocaleModel class provides a model for the available locales.
@@ -161,6 +161,12 @@ QString LocaleItem::code() const
*/
/*!
+ \fn LocaleModel::ready()
+
+ This signal is emitted when the locale model has been reset.
+*/
+
+/*!
Creates a locale model with the parent \a parent.
*/
LocaleModel::LocaleModel(QObject *parent)
@@ -233,7 +239,7 @@ QHash<int, QByteArray> LocaleModel::roleNames() const
}
/*!
- Returns the number of rows in the locale model.
+ Returns the number of rows in the locale model that has \a parent.
*/
int LocaleModel::rowCount(const QModelIndex & parent) const
{
@@ -285,7 +291,7 @@ bool LocaleModel::variantLessThan(const LocaleItem* v1, const LocaleItem* v2)
}
/*!
- Sets the sorting order of the items in the locale model to \a order.
+ Sets the sorting order of the \a column items in the locale model to \a order.
The sort order can be either \l {Qt::AscendingOrder}{ascending} or
\l {Qt::DescendingOrder}{descending}.