tools/designer/src/lib/uilib/formbuilder.cpp
changeset 7 f7bc934e204c
parent 3 41300fa6a67c
equal deleted inserted replaced
3:41300fa6a67c 7:f7bc934e204c
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the Qt Designer of the Qt Toolkit.
     7 ** This file is part of the Qt Designer of the Qt Toolkit.
     8 **
     8 **
   492 */
   492 */
   493 void QFormBuilder::updateCustomWidgets()
   493 void QFormBuilder::updateCustomWidgets()
   494 {
   494 {
   495     m_customWidgets.clear();
   495     m_customWidgets.clear();
   496 
   496 
   497     foreach (QString path, m_pluginPaths) {
   497     foreach (const QString &path, m_pluginPaths) {
   498         const QDir dir(path);
   498         const QDir dir(path);
   499         const QStringList candidates = dir.entryList(QDir::Files);
   499         const QStringList candidates = dir.entryList(QDir::Files);
   500 
   500 
   501         foreach (const QString &plugin, candidates) {
   501         foreach (const QString &plugin, candidates) {
   502             if (!QLibrary::isLibrary(plugin))
   502             if (!QLibrary::isLibrary(plugin))