diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2014-02-02 14:09:09 -0800 |
|---|---|---|
| committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-04 14:40:21 +0100 |
| commit | 83bf3d791488e763b2d32408edab7f8040c7d0ac (patch) | |
| tree | 26b8aee72d43379149d91fcb496d4f21ac1a9896 /src/widgets/qquickqfiledialog.cpp | |
| parent | a1df3e8537b7474db08e81bd1f0faebb13caebf4 (diff) | |
Normalize signal & slot signatures in connection
Profiling shows Qt Creator spends 2% of its load time normalizing
Change-Id: I793aea0f46cc74f6466e52d00c0ec868c6603c77
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Diffstat (limited to 'src/widgets/qquickqfiledialog.cpp')
| -rw-r--r-- | src/widgets/qquickqfiledialog.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/widgets/qquickqfiledialog.cpp b/src/widgets/qquickqfiledialog.cpp index c3991b4f3..9dc967dd9 100644 --- a/src/widgets/qquickqfiledialog.cpp +++ b/src/widgets/qquickqfiledialog.cpp @@ -128,8 +128,8 @@ QPlatformFileDialogHelper *QQuickQFileDialog::helper() if (!m_dlgHelper) { m_dlgHelper = new QFileDialogHelper(); - connect(m_dlgHelper, SIGNAL(directoryEntered(const QUrl &)), this, SIGNAL(folderChanged())); - connect(m_dlgHelper, SIGNAL(filterSelected(const QString &)), this, SIGNAL(filterSelected())); + connect(m_dlgHelper, SIGNAL(directoryEntered(QUrl)), this, SIGNAL(folderChanged())); + connect(m_dlgHelper, SIGNAL(filterSelected(QString)), this, SIGNAL(filterSelected())); connect(m_dlgHelper, SIGNAL(accept()), this, SLOT(accept())); connect(m_dlgHelper, SIGNAL(reject()), this, SLOT(reject())); } @@ -140,11 +140,11 @@ QPlatformFileDialogHelper *QQuickQFileDialog::helper() QFileDialogHelper::QFileDialogHelper() : QPlatformFileDialogHelper() { - connect(&m_dialog, SIGNAL(currentChanged(const QString&)), this, SLOT(currentChanged(const QString&))); - connect(&m_dialog, SIGNAL(directoryEntered(const QString&)), this, SLOT(directoryEntered(const QString&))); - connect(&m_dialog, SIGNAL(fileSelected(const QString&)), this, SLOT(fileSelected(const QString&))); - connect(&m_dialog, SIGNAL(filesSelected(const QStringList&)), this, SLOT(filesSelected(const QStringList&))); - connect(&m_dialog, SIGNAL(filterSelected(const QString&)), this, SIGNAL(filterSelected(const QString&))); + connect(&m_dialog, SIGNAL(currentChanged(QString)), this, SLOT(currentChanged(QString))); + connect(&m_dialog, SIGNAL(directoryEntered(QString)), this, SLOT(directoryEntered(QString))); + connect(&m_dialog, SIGNAL(fileSelected(QString)), this, SLOT(fileSelected(QString))); + connect(&m_dialog, SIGNAL(filesSelected(QStringList)), this, SLOT(filesSelected(QStringList))); + connect(&m_dialog, SIGNAL(filterSelected(QString)), this, SIGNAL(filterSelected(QString))); connect(&m_dialog, SIGNAL(accepted()), this, SIGNAL(accept())); connect(&m_dialog, SIGNAL(rejected()), this, SIGNAL(reject())); } |
