summaryrefslogtreecommitdiff
path: root/src/zoombar.cpp
diff options
context:
space:
mode:
authorYoann Laissus <yoann.laissus@gmail.com>2010-08-09 23:51:33 +0200
committerYoann Laissus <yoann.laissus@gmail.com>2010-08-10 11:37:31 +0200
commite55e9c541f7a700de529b521552cc935619cc894 (patch)
tree9664e74302dfeec8074eaa28b754a806d0b68fb1 /src/zoombar.cpp
parentremove useless #includes (diff)
downloadrekonq-e55e9c541f7a700de529b521552cc935619cc894.tar.xz
- Fix Ctrl + wheel shortcut
- Fix zoomUp at the end of the bar - add a stretch on the right
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
}