summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-11-10 00:11:35 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-11-14 05:52:20 +0100
commit24b15dc681c7692bb25d616d86c057ba6afe03bd (patch)
tree2ef24f9160f3e136eaf94c49ce595a77ec050d2c
parentRemove mainWindow pointer from mainview class. (diff)
downloadrekonq-24b15dc681c7692bb25d616d86c057ba6afe03bd.tar.xz
Fix zoombar handling
-rw-r--r--src/mainwindow.cpp3
-rw-r--r--src/webtab.cpp1
-rw-r--r--src/webtab.h1
-rw-r--r--src/zoombar.cpp1
4 files changed, 1 insertions, 5 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index e59aede7..811f1cf8 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -207,9 +207,6 @@ MainWindow::MainWindow()
// Zoom Bar signal
connect(m_view, SIGNAL(currentChanged(int)), m_zoomBar, SLOT(updateSlider(int)));
- // Ctrl + wheel handling
- connect(currentTab(), SIGNAL(zoomChanged(int)), m_zoomBar, SLOT(setValue(int)));
-
// Save session on window closing
connect(this, SIGNAL(windowClosing()), rApp->sessionManager(), SLOT(saveSession()));
diff --git a/src/webtab.cpp b/src/webtab.cpp
index 3caf46b8..61c9077f 100644
--- a/src/webtab.cpp
+++ b/src/webtab.cpp
@@ -86,7 +86,6 @@ WebTab::WebTab(QWidget *parent)
connect(m_webView, SIGNAL(loadProgress(int)), this, SLOT(updateProgress(int)));
connect(m_webView, SIGNAL(titleChanged(const QString &)), this, SIGNAL(titleChanged(const QString &)));
- connect(m_webView, SIGNAL(zoomChanged(int)), this, SLOT(zoomChanged(int)));
// Session Manager
connect(m_webView, SIGNAL(loadFinished(bool)), rApp->sessionManager(), SLOT(saveSession()));
diff --git a/src/webtab.h b/src/webtab.h
index 2e95fecf..fefdaf66 100644
--- a/src/webtab.h
+++ b/src/webtab.h
@@ -103,7 +103,6 @@ private Q_SLOTS:
Q_SIGNALS:
void loadProgressing();
void titleChanged(const QString &);
- void zoomChanged(int);
private:
KUrl extractOpensearchUrl(QWebElement e);
diff --git a/src/zoombar.cpp b/src/zoombar.cpp
index 95a2c250..d709b38a 100644
--- a/src/zoombar.cpp
+++ b/src/zoombar.cpp
@@ -166,6 +166,7 @@ void ZoomBar::updateSlider(int webview)
return;
m_zoomSlider->setValue(tab->view()->zoomFactor() * 10);
+ connect(tab->view(), SIGNAL(zoomChanged(int)), this, SLOT(setValue(int)));
}