# HG changeset patch # User Hasan Yavuz Ă–ZDERYA # Date 2017-10-05 06:16:31 # Node ID 3dcdee629416a51dba1ea5cfff1681c6171d8394 # Parent 48275214044f1046bcbea966f47266a62425a31b display cursor tracker always diff --git a/src/zoomer.cpp b/src/zoomer.cpp --- a/src/zoomer.cpp +++ b/src/zoomer.cpp @@ -28,6 +28,8 @@ Zoomer::Zoomer(QWidget* widget, bool doR { is_panning = false; + setTrackerMode(AlwaysOn); + // set corner widget between the scrollbars with default background color auto cornerWidget = new QWidget(); auto bgColor = cornerWidget->palette().color(QPalette::Window).name(); @@ -62,7 +64,7 @@ QwtText Zoomer::trackerTextF(const QPoin QwtText b = ScrollZoomer::trackerTextF(pos); const QPolygon pa = selection(); - if (pa.count() < 2) + if (!isActive() || pa.count() < 2) { return b; }