summaryrefslogtreecommitdiffstats
path: root/src/designer/src/lib/shared/widgetdatabase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/designer/src/lib/shared/widgetdatabase.cpp')
-rw-r--r--src/designer/src/lib/shared/widgetdatabase.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/designer/src/lib/shared/widgetdatabase.cpp b/src/designer/src/lib/shared/widgetdatabase.cpp
index 5fecd4c98..8c6382112 100644
--- a/src/designer/src/lib/shared/widgetdatabase.cpp
+++ b/src/designer/src/lib/shared/widgetdatabase.cpp
@@ -373,7 +373,7 @@ void WidgetDataBase::loadPlugins()
unsigned replacedPlugins = 0;
unsigned addedPlugins = 0;
unsigned removedPlugins = 0;
- if (!pluginList.empty()) {
+ if (!pluginList.isEmpty()) {
ItemList::const_iterator cend = pluginList.constEnd();
for (ItemList::const_iterator it = pluginList.constBegin();it != cend; ++it ) {
QDesignerWidgetDataBaseItemInterface* pluginItem = *it;
@@ -399,7 +399,7 @@ void WidgetDataBase::loadPlugins()
}
}
// 4) remove classes that have not been matched. The stored indexes become invalid while deleting.
- if (!existingCustomClasses.empty()) {
+ if (!existingCustomClasses.isEmpty()) {
NameIndexMap::const_iterator cend = existingCustomClasses.constEnd();
for (NameIndexMap::const_iterator it = existingCustomClasses.constBegin();it != cend; ++it ) {
const int index = indexOfClassName(it.key());
@@ -503,7 +503,7 @@ static inline bool suitableForNewForm(const QString &className)
QStringList WidgetDataBase::formWidgetClasses(const QDesignerFormEditorInterface *core)
{
static QStringList rc;
- if (rc.empty()) {
+ if (rc.isEmpty()) {
const QDesignerWidgetDataBaseInterface *wdb = core->widgetDataBase();
const int widgetCount = wdb->count();
for (int i = 0; i < widgetCount; i++) {