From ff733b27057cabbcad3d5e606bddfc017039eb98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 12 Feb 2017 20:11:36 +0100 Subject: [PATCH] Indicate moving time in status bar --- src/gui.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/gui.cpp b/src/gui.cpp index e535d74a..f5bc8595 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -1091,12 +1091,18 @@ void GUI::updateStatusBarInfo() _distanceLabel->clear(); if (time() > 0) { - if (_movingTimeAction->isChecked()) - _timeLabel->setText(Format::timeSpan(movingTime())); - else + if (_movingTimeAction->isChecked()) { + _timeLabel->setText(Format::timeSpan(movingTime()) + + "M"); + _timeLabel->setToolTip(Format::timeSpan(time())); + } else { _timeLabel->setText(Format::timeSpan(time())); - } else + _timeLabel->setToolTip(Format::timeSpan(movingTime())); + } + } else { _timeLabel->clear(); + _timeLabel->setToolTip(QString()); + } } void GUI::updateWindowTitle()