summaryrefslogtreecommitdiff
path: root/src/designer/src/lib/shared/shared_settings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/designer/src/lib/shared/shared_settings.cpp')
-rw-r--r--src/designer/src/lib/shared/shared_settings.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/designer/src/lib/shared/shared_settings.cpp b/src/designer/src/lib/shared/shared_settings.cpp
index b759555bd..2800e89c5 100644
--- a/src/designer/src/lib/shared/shared_settings.cpp
+++ b/src/designer/src/lib/shared/shared_settings.cpp
@@ -90,7 +90,7 @@ Grid QDesignerSharedSettings::defaultGrid() const
Grid grid;
const QVariantMap defaultGridMap
= m_settings->value(QLatin1String(defaultGridKey), QVariantMap()).toMap();
- if (!defaultGridMap.empty())
+ if (!defaultGridMap.isEmpty())
grid.fromVariantMap(defaultGridMap);
return grid;
}
@@ -103,7 +103,7 @@ void QDesignerSharedSettings::setDefaultGrid(const Grid &grid)
const QStringList &QDesignerSharedSettings::defaultFormTemplatePaths()
{
static QStringList rc;
- if (rc.empty()) {
+ if (rc.isEmpty()) {
// Ensure default form template paths
const QString templatePath = QStringLiteral("/templates");
// home
@@ -300,7 +300,7 @@ QDesignerSharedSettings::DeviceProfileList QDesignerSharedSettings::deviceProfil
{
DeviceProfileList rc;
const QStringList xmls = deviceProfileXml();
- if (xmls.empty())
+ if (xmls.isEmpty())
return rc;
// De-serialize
QString errorMessage;