From b18a8f177eea596854c86855dd58d38736e2a037 Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Mon, 31 Aug 2009 10:58:03 +0200 Subject: [PATCH] Remaining time tooltip --- src/MainWindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index a7621f1..ac10087 100755 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -601,6 +601,12 @@ void MainWindow::tick(qint64 time) { } QTime displayTime(0, (time / 60000) % 60, (time / 1000) % 60); currentTime->setText(displayTime.toString("mm:ss")); + + // remaining time tooltip + int remainingTimeInt = mediaObject->remainingTime(); + QTime remainingTime(0, (remainingTimeInt / 60000) % 60, (remainingTimeInt / 1000) % 60); + currentTime->setToolTip(tr("Remaining time: %1").arg(remainingTime.toString("mm:ss"))); + // qDebug() << "currentTime" << time << displayTime.toString("mm:ss"); } -- 2.39.5