summaryrefslogtreecommitdiff
path: root/src/zoombar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zoombar.cpp')
-rw-r--r--src/zoombar.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/zoombar.cpp b/src/zoombar.cpp
index d44553ed..1b52ae7b 100644
--- a/src/zoombar.cpp
+++ b/src/zoombar.cpp
@@ -64,7 +64,7 @@ ZoomBar::ZoomBar(QWidget *parent)
layout->setAlignment(hideButton, Qt::AlignLeft | Qt::AlignTop);
// label
- QLabel *label = new QLabel(i18n("Zoom:"));
+ QLabel *label = new QLabel(i18n("Zoom :"));
layout->addWidget(label);
m_zoomSlider->setTracking(true);
@@ -77,13 +77,15 @@ ZoomBar::ZoomBar(QWidget *parent)
m_zoomOut->setAutoRaise(true);
m_zoomNormal->setAutoRaise(true);
- layout->setSpacing(0);
- layout->setMargin(0);
+ // layout->setSpacing(0);
+ // layout->setMargin(0);
layout->addWidget(m_zoomOut);
layout->addWidget(m_zoomSlider);
layout->addWidget(m_zoomIn);
layout->addWidget(m_zoomNormal);
+ layout->addStretch();
+
setLayout(layout);
// we start off hidden
@@ -161,5 +163,5 @@ void ZoomBar::updateSlider(int webview)
void ZoomBar::setValue(int value)
{
m_zoomSlider->setValue(value);
- Application::instance()->mainWindow()->currentTab()->view()->setZoomFactor(QVariant(value).toReal() / 10);
+ Application::instance()->mainWindow()->currentTab()->view()->setZoomFactor(QVariant(m_zoomSlider->value()).toReal() / 10); // Don't allox max +1 values
}