diff options
author | Yoann Laissus <yoann.laissus@gmail.com> | 2010-08-09 23:51:33 +0200 |
---|---|---|
committer | Yoann Laissus <yoann.laissus@gmail.com> | 2010-08-10 11:37:31 +0200 |
commit | e55e9c541f7a700de529b521552cc935619cc894 (patch) | |
tree | 9664e74302dfeec8074eaa28b754a806d0b68fb1 /src/zoombar.cpp | |
parent | remove useless #includes (diff) | |
download | rekonq-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.cpp | 10 |
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 } |