summaryrefslogtreecommitdiffstats
path: root/src/imports/folderlistmodel/qdeclarativefolderlistmodel.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-02-02 14:08:51 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-04 04:44:28 +0100
commit2c396cd08c900dc06a0fcefa96e27fe54eeeb8a0 (patch)
tree0ec1ea2ea9089f2d27a6c6fe8df9507485f7b70b /src/imports/folderlistmodel/qdeclarativefolderlistmodel.cpp
parent9e1e81ecc2c88c97991b6bd93cbf4c660272b5c6 (diff)
Normalize signal & slot signatures in connection
Profiling shows Qt Creator spends 2% of its load time normalizing Change-Id: Id7ba78038c8504d960172923026245d28de182e8 Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'src/imports/folderlistmodel/qdeclarativefolderlistmodel.cpp')
-rw-r--r--src/imports/folderlistmodel/qdeclarativefolderlistmodel.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/imports/folderlistmodel/qdeclarativefolderlistmodel.cpp b/src/imports/folderlistmodel/qdeclarativefolderlistmodel.cpp
index 74e507de..05664225 100644
--- a/src/imports/folderlistmodel/qdeclarativefolderlistmodel.cpp
+++ b/src/imports/folderlistmodel/qdeclarativefolderlistmodel.cpp
@@ -158,12 +158,12 @@ QDeclarativeFolderListModel::QDeclarativeFolderListModel(QObject *parent)
{
d = new QDeclarativeFolderListModelPrivate;
d->model.setFilter(QDir::AllDirs | QDir::Files | QDir::Drives | QDir::NoDotAndDotDot);
- connect(&d->model, SIGNAL(rowsInserted(const QModelIndex&,int,int))
- , this, SLOT(inserted(const QModelIndex&,int,int)));
- connect(&d->model, SIGNAL(rowsRemoved(const QModelIndex&,int,int))
- , this, SLOT(removed(const QModelIndex&,int,int)));
- connect(&d->model, SIGNAL(dataChanged(const QModelIndex&,const QModelIndex&))
- , this, SLOT(handleDataChanged(const QModelIndex&,const QModelIndex&)));
+ connect(&d->model, SIGNAL(rowsInserted(QModelIndex,int,int))
+ , this, SLOT(inserted(QModelIndex,int,int)));
+ connect(&d->model, SIGNAL(rowsRemoved(QModelIndex,int,int))
+ , this, SLOT(removed(QModelIndex,int,int)));
+ connect(&d->model, SIGNAL(dataChanged(QModelIndex,QModelIndex))
+ , this, SLOT(handleDataChanged(QModelIndex,QModelIndex)));
connect(&d->model, SIGNAL(modelReset()), this, SLOT(refresh()));
connect(&d->model, SIGNAL(layoutChanged()), this, SLOT(refresh()));
}