diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-01-19 09:32:07 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-01-19 09:32:07 +0100 |
commit | 9b0dc8d98fb232cabb683d5681dc0252b9532c32 (patch) | |
tree | f2d9421f8bb6cc8a60f7f8db718b89cca2061a10 /src/webtab.cpp | |
parent | Moved access keys activation to release key event (diff) | |
download | rekonq-9b0dc8d98fb232cabb683d5681dc0252b9532c32.tar.xz |
Krazy fixes
- QL1S/QL1C
- single-char QString efficiency
- explicit ctors
- normalized signals & slots
Diffstat (limited to 'src/webtab.cpp')
-rw-r--r-- | src/webtab.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/webtab.cpp b/src/webtab.cpp index 27b0fe8a..8b140866 100644 --- a/src/webtab.cpp +++ b/src/webtab.cpp @@ -81,13 +81,13 @@ WebTab::WebTab(QWidget *parent) if (wallet) { - connect(wallet, SIGNAL(saveFormDataRequested(const QString &, const QUrl &)), - this, SLOT(createWalletBar(const QString &, const QUrl &))); + connect(wallet, SIGNAL(saveFormDataRequested(QString, QUrl)), + this, SLOT(createWalletBar(QString, QUrl))); } connect(m_webView, SIGNAL(loadProgress(int)), this, SLOT(updateProgress(int))); connect(m_webView, SIGNAL(loadStarted()), this, SLOT(resetProgress())); - connect(m_webView, SIGNAL(titleChanged(const QString &)), this, SIGNAL(titleChanged(const QString &))); + connect(m_webView, SIGNAL(titleChanged(QString)), this, SIGNAL(titleChanged(QString))); // Session Manager connect(m_webView, SIGNAL(loadFinished(bool)), rApp->sessionManager(), SLOT(saveSession())); @@ -156,13 +156,13 @@ void WebTab::createWalletBar(const QString &key, const QUrl &url) m_walletBar.data()->animatedShow(); } - connect(m_walletBar.data(), SIGNAL(saveFormDataAccepted(const QString &)), - wallet, SLOT(acceptSaveFormDataRequest(const QString &)), Qt::UniqueConnection); - connect(m_walletBar.data(), SIGNAL(saveFormDataRejected(const QString &)), - wallet, SLOT(rejectSaveFormDataRequest(const QString &)), Qt::UniqueConnection); + connect(m_walletBar.data(), SIGNAL(saveFormDataAccepted(QString)), + wallet, SLOT(acceptSaveFormDataRequest(QString)), Qt::UniqueConnection); + connect(m_walletBar.data(), SIGNAL(saveFormDataRejected(QString)), + wallet, SLOT(rejectSaveFormDataRequest(QString)), Qt::UniqueConnection); // sync passwords - connect(m_walletBar.data(), SIGNAL(saveFormDataAccepted(const QString &)), + connect(m_walletBar.data(), SIGNAL(saveFormDataAccepted(QString)), rApp->syncManager(), SLOT(syncPasswords()), Qt::UniqueConnection); } @@ -298,9 +298,9 @@ void WebTab::showSearchEngine(const QPoint &pos) WebShortcutWidget *widget = new WebShortcutWidget(window()); widget->setWindowFlags(Qt::Popup); - connect(widget, SIGNAL(webShortcutSet(const KUrl &, const QString &, const QString &)), - rApp->opensearchManager(), SLOT(addOpenSearchEngine(const KUrl &, const QString &, const QString &))); - connect(rApp->opensearchManager(), SIGNAL(openSearchEngineAdded(const QString &, const QString &, const QString &)), + connect(widget, SIGNAL(webShortcutSet(KUrl, QString, QString)), + rApp->opensearchManager(), SLOT(addOpenSearchEngine(KUrl, QString, QString))); + connect(rApp->opensearchManager(), SIGNAL(openSearchEngineAdded(QString, QString, QString)), this, SLOT(openSearchEngineAdded())); widget->show(extractOpensearchUrl(e), title, pos); @@ -313,7 +313,7 @@ void WebTab::openSearchEngineAdded() // If the providers changed, tell sycoca to rebuild its database... KBuildSycocaProgressDialog::rebuildKSycoca(this); - disconnect(rApp->opensearchManager(), SIGNAL(openSearchEngineAdded(const QString &, const QString &, const QString &)), + disconnect(rApp->opensearchManager(), SIGNAL(openSearchEngineAdded(QString, QString, QString)), this, SLOT(openSearchEngineAdded())); } |