From 24b15dc681c7692bb25d616d86c057ba6afe03bd Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 10 Nov 2011 00:11:35 +0100 Subject: Fix zoombar handling --- src/mainwindow.cpp | 3 --- src/webtab.cpp | 1 - src/webtab.h | 1 - src/zoombar.cpp | 1 + 4 files changed, 1 insertion(+), 5 deletions(-) (limited to 'src') 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))); } -- cgit v1.2.1