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/mainview.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/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index c7cfce0c..438f885a 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -246,16 +246,16 @@ void MainView::currentChanged(int index) if (oldTab) { // disconnecting webpage from mainview - disconnect(oldTab->page(), SIGNAL(statusBarMessage(const QString&)), - this, SIGNAL(showStatusBarMessage(const QString&))); - disconnect(oldTab->page(), SIGNAL(linkHovered(const QString&, const QString&, const QString&)), - this, SIGNAL(linkHovered(const QString&))); + disconnect(oldTab->page(), SIGNAL(statusBarMessage(QString)), + this, SIGNAL(showStatusBarMessage(QString))); + disconnect(oldTab->page(), SIGNAL(linkHovered(QString, QString, QString)), + this, SIGNAL(linkHovered(QString))); } - connect(tab->page(), SIGNAL(statusBarMessage(const QString&)), - this, SIGNAL(showStatusBarMessage(const QString&))); - connect(tab->page(), SIGNAL(linkHovered(const QString&, const QString&, const QString&)), - this, SIGNAL(linkHovered(const QString&))); + connect(tab->page(), SIGNAL(statusBarMessage(QString)), + this, SIGNAL(showStatusBarMessage(QString))); + connect(tab->page(), SIGNAL(linkHovered(QString, QString, QString)), + this, SIGNAL(linkHovered(QString))); emit currentTitle(tab->view()->title()); m_widgetBar->setCurrentIndex(index); @@ -296,15 +296,15 @@ WebTab *MainView::newWebTab(bool focused) // connecting webview with mainview connect(tab->view(), SIGNAL(loadStarted()), this, SLOT(webViewLoadStarted())); connect(tab->view(), SIGNAL(loadFinished(bool)), this, SLOT(webViewLoadFinished(bool))); - connect(tab, SIGNAL(titleChanged(const QString &)), this, SLOT(webViewTitleChanged(const QString &))); - connect(tab->view(), SIGNAL(urlChanged(const QUrl &)), this, SLOT(webViewUrlChanged(const QUrl &))); + connect(tab, SIGNAL(titleChanged(QString)), this, SLOT(webViewTitleChanged(QString))); + connect(tab->view(), SIGNAL(urlChanged(QUrl)), this, SLOT(webViewUrlChanged(QUrl))); connect(tab->view(), SIGNAL(iconChanged()), this, SLOT(webViewIconChanged())); connect(tab->view(), SIGNAL(openPreviousInHistory()), this, SIGNAL(openPreviousInHistory())); connect(tab->view(), SIGNAL(openNextInHistory()), this, SIGNAL(openNextInHistory())); // connecting webPage signals with mainview connect(tab->page(), SIGNAL(windowCloseRequested()), this, SLOT(windowCloseRequested())); - connect(tab->page(), SIGNAL(printRequested(QWebFrame *)), this, SIGNAL(printRequested(QWebFrame *))); + connect(tab->page(), SIGNAL(printRequested(QWebFrame*)), this, SIGNAL(printRequested(QWebFrame*))); bool openNearCurrent = true; if (sender()) |