diff --git a/src/Gui/KSMainWindow.cpp b/src/Gui/KSMainWindow.cpp --- a/src/Gui/KSMainWindow.cpp +++ b/src/Gui/KSMainWindow.cpp @@ -34,6 +34,7 @@ #include #include #include +#include #include #include @@ -290,7 +291,11 @@ delayAnimation->setEndValue(1.0); delayAnimation->setDuration(timer->interval()); connect(delayAnimation, &QVariantAnimation::valueChanged, this, [=] { - unityUpdate({ {QStringLiteral("progress"), delayAnimation->currentValue().toDouble()} }); + double progress = delayAnimation->currentValue().toDouble(); + double timeoutInS = theTimeout / 1000.0; + unityUpdate({ {QStringLiteral("progress"), progress} }); + setWindowTitle(i18ncp("@title:window", "%1 second", "%1 seconds", + qMin(int(timeoutInS), qCeil((1 - progress) * timeoutInS)))); }); connect(timer, &QTimer::timeout, this, [=] { this->hide();