Skip to content

Commit

Permalink
ScaleSlideQWidget: better tick size (e.g. for fps in the readers)
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Aug 18, 2016
1 parent 47e5b1c commit 231c7f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gui/ScaleSliderQWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ ScaleSliderQWidget::paintEvent(QPaintEvent* /*e*/)

double tickBottom = _imp->zoomCtx.toZoomCoordinates( 0, height() - 1 - fontM.height() ).y();
double tickTop = _imp->zoomCtx.toZoomCoordinates( 0, height() - 1 - fontM.height() - TO_DPIY(TICK_HEIGHT) ).y();
const double smallestTickSizePixel = std::min(60., width()/3.); // tick size (in pixels) for alpha = 0.
const double smallestTickSizePixel = std::min(60., width() / 4.); // tick size (in pixels) for alpha = 0.
const double largestTickSizePixel = 120.; // tick size (in pixels) for alpha = 1.
const double rangePixel = width();
const double range_min = btmLeft.x();
Expand Down

0 comments on commit 231c7f7

Please sign in to comment.