diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-02-02 14:08:51 -0800 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-04 04:44:28 +0100 |
commit | 2c396cd08c900dc06a0fcefa96e27fe54eeeb8a0 (patch) | |
tree | 0ec1ea2ea9089f2d27a6c6fe8df9507485f7b70b | |
parent | 9e1e81ecc2c88c97991b6bd93cbf4c660272b5c6 (diff) | |
download | qtquick1-2c396cd08c900dc06a0fcefa96e27fe54eeeb8a0.tar.gz |
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>
-rw-r--r-- | src/imports/folderlistmodel/qdeclarativefolderlistmodel.cpp | 12 | ||||
-rw-r--r-- | src/imports/webview/qdeclarativewebview.cpp | 2 |
2 files changed, 7 insertions, 7 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())); } diff --git a/src/imports/webview/qdeclarativewebview.cpp b/src/imports/webview/qdeclarativewebview.cpp index 5784ba40..84524d8d 100644 --- a/src/imports/webview/qdeclarativewebview.cpp +++ b/src/imports/webview/qdeclarativewebview.cpp @@ -302,7 +302,7 @@ void QDeclarativeWebView::init() if (!preferredHeight()) setPreferredHeight(d->view->preferredHeight()); connect(d->view, SIGNAL(geometryChanged()), this, SLOT(updateDeclarativeWebViewSize())); - connect(d->view, SIGNAL(doubleClick(int, int)), this, SIGNAL(doubleClick(int, int))); + connect(d->view, SIGNAL(doubleClick(int,int)), this, SIGNAL(doubleClick(int,int))); connect(d->view, SIGNAL(scaleChanged()), this, SIGNAL(contentsScaleChanged())); } |