only integer timeline zoom sizes to fit the style

This commit is contained in:
Carlo "zED" Caputo 2016-08-07 08:13:18 -03:00
parent 9ec5587d72
commit 2075109a5a
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
<grid columns="3">
<check id="thumb_enabled" text="Force" />
<label text="Zoom:" />
<slider min="10" max="100" id="zoom" cell_align="horizontal" width="128" />
<slider min="1" max="10" id="zoom" cell_align="horizontal" width="128" />
<check id="thumb_overlay_enabled" text="Overlay"/>
<label text="Size:" />

View File

@ -133,7 +133,7 @@ void ConfigureTimelinePopup::updateWidgetsFromCurrentSettings()
break;
}
m_box->zoom()->setValue(docPref.thumbnails.zoom() * 10.0);
m_box->zoom()->setValue(docPref.thumbnails.zoom());
m_box->thumbBackground()->setColor(docPref.thumbnails.background());
m_box->thumbEnabled()->setSelected(docPref.thumbnails.enabled());
m_box->thumbOverlayEnabled()->setSelected(docPref.thumbnails.overlayEnabled());
@ -211,7 +211,7 @@ void ConfigureTimelinePopup::onPositionChange()
void ConfigureTimelinePopup::onZoomChange()
{
docPref().thumbnails.zoom(m_box->zoom()->getValue()/10.0);
docPref().thumbnails.zoom(m_box->zoom()->getValue());
}
void ConfigureTimelinePopup::onThumbQualityChange()