From 64cac4862842c7efa2dc7591ab5b672255e49e4c Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 10 Nov 2009 15:20:49 +0100 Subject: (BIG commit) API change I fixed rekonq API removing all slotName call switching to a proper getter call (so, name() functions) --- src/webview.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/webview.cpp') diff --git a/src/webview.cpp b/src/webview.cpp index 705a3aa7..b8634410 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -63,8 +63,8 @@ WebView::WebView(QWidget* parent) setPage(m_page); connect(page(), SIGNAL(statusBarMessage(const QString&)), this, SLOT(setStatusBarText(const QString&))); - connect(this, SIGNAL(loadProgress(int)), this, SLOT(slotUpdateProgress(int))); - connect(this, SIGNAL(loadFinished(bool)), this, SLOT(slotLoadFinished(bool))); + connect(this, SIGNAL(loadProgress(int)), this, SLOT(updateProgress(int))); + connect(this, SIGNAL(loadFinished(bool)), this, SLOT(loadFinished(bool))); } @@ -200,7 +200,7 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) a = new KAction(service->name(), this); a->setIcon(Application::icon(KUrl(data.uri()))); a->setData(searchProviderPrefix); - connect(a, SIGNAL(triggered(bool)), this, SLOT(slotSearch())); + connect(a, SIGNAL(triggered(bool)), this, SLOT(search())); searchMenu->addAction(a); } } @@ -399,7 +399,7 @@ void WebView::wheelEvent(QWheelEvent *event) } -void WebView::slotSearch() +void WebView::search() { KAction *a = qobject_cast(sender()); QString search = a->data().toString() + selectedText(); @@ -408,13 +408,13 @@ void WebView::slotSearch() } -void WebView::slotUpdateProgress(int p) +void WebView::updateProgress(int p) { m_progress = p; } -void WebView::slotLoadFinished(bool) +void WebView::loadFinished(bool) { m_progress = 0; } -- cgit v1.2.1