summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-11-10 15:20:49 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-11-10 15:20:49 +0100
commit64cac4862842c7efa2dc7591ab5b672255e49e4c (patch)
treec0ea60adb6761b738315a04d82008c8c15f15f27 /src/webview.cpp
parentfixing new mainWindow() behaviour, porting functions calling it (diff)
downloadrekonq-64cac4862842c7efa2dc7591ab5b672255e49e4c.tar.xz
(BIG commit) API change
I fixed rekonq API removing all slotName call switching to a proper getter call (so, name() functions)
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp12
1 files changed, 6 insertions, 6 deletions
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<KAction*>(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;
}