Mercurial > hg > svgui
diff view/Pane.cpp @ 165:793df5f0c6cb
* Make the thumbwheel widget much smoother to use, and fix a bug in positioning
author | Chris Cannam |
---|---|
date | Thu, 12 Oct 2006 15:47:38 +0000 |
parents | 30d624900564 |
children | d0b95a8cac96 |
line wrap: on
line diff
--- a/view/Pane.cpp Thu Oct 12 14:56:28 2006 +0000 +++ b/view/Pane.cpp Thu Oct 12 15:47:38 2006 +0000 @@ -88,6 +88,7 @@ m_hthumb->setFixedWidth(70); m_hthumb->setFixedHeight(16); m_hthumb->setDefaultValue(0); + m_hthumb->setSpeed(0.6); connect(m_hthumb, SIGNAL(valueChanged(int)), this, SLOT(horizontalThumbwheelMoved(int))); @@ -188,16 +189,16 @@ if (m_manager && m_manager->getZoomWheelsEnabled() && width() > 120 && height() > 100) { + if (!m_headsUpDisplay->isVisible()) { + m_headsUpDisplay->show(); + connect(m_manager, SIGNAL(zoomLevelChanged()), + this, SLOT(zoomLevelChanged())); + } if (m_vthumb->isVisible()) { m_headsUpDisplay->move(width() - 86, height() - 86); } else { m_headsUpDisplay->move(width() - 86, height() - 51); } - if (!m_headsUpDisplay->isVisible()) { - m_headsUpDisplay->show(); - connect(m_manager, SIGNAL(zoomLevelChanged()), - this, SLOT(zoomLevelChanged())); - } } else { m_headsUpDisplay->hide(); if (m_manager) {