summaryrefslogtreecommitdiff
path: root/src/zoombar.cpp
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@gmail.com>2011-02-24 18:35:20 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-02-24 18:38:45 +0100
commit23b44d0344304499ba8e1f199720202381920827 (patch)
treeedd144e38d6dc3619b8b889f3a80a69a8dc52180 /src/zoombar.cpp
parentSave one updateRightIcons call from the bookmark icon. (diff)
downloadrekonq-23b44d0344304499ba8e1f199720202381920827.tar.xz
No more static members in the Application class,
an rApp shortcut for Application::instance, clean up code switching to use the new shortcut Reviewed by: adjam
Diffstat (limited to 'src/zoombar.cpp')
-rw-r--r--src/zoombar.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/zoombar.cpp b/src/zoombar.cpp
index 86791266..544cfa4b 100644
--- a/src/zoombar.cpp
+++ b/src/zoombar.cpp
@@ -135,7 +135,7 @@ void ZoomBar::show()
{
emit visibilityChanged(true);
QWidget::show();
- m_zoomSlider->setValue(Application::instance()->mainWindow()->currentTab()->view()->zoomFactor()*10);
+ m_zoomSlider->setValue(rApp->mainWindow()->currentTab()->view()->zoomFactor()*10);
}
}
@@ -168,8 +168,8 @@ void ZoomBar::zoomNormal()
void ZoomBar::updateSlider(int webview)
{
WebTab *tab = 0;
- if (!Application::instance()->mainWindowList().isEmpty())
- tab = Application::instance()->mainWindow()->mainView()->webTab(webview);
+ if (!rApp->mainWindowList().isEmpty())
+ tab = rApp->mainWindow()->mainView()->webTab(webview);
if (!tab)
return;
@@ -183,7 +183,7 @@ void ZoomBar::setValue(int value)
m_zoomSlider->setValue(value);
m_percentage->setText(i18nc("percentage of the website zoom", "%1%", QString::number(value*10)));
- WebTab *tab = Application::instance()->mainWindow()->currentTab();
+ WebTab *tab = rApp->mainWindow()->currentTab();
saveZoomValue(tab->url().host(), value);
tab->view()->setZoomFactor(QVariant(value).toReal() / 10); // Don't allox max +1 values
}