X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Ffrontends%2Fqt4%2FGuiProgress.cpp;h=aec058cf8e66110787aa9fe23ce71a0882b90308;hb=59e0cb8f85f0d2f985b31532dd3308315659c662;hp=28367deddbf1cec580d7a0bde444a6e7a1c180e1;hpb=ddc38c93ca7c8e96ab1988626903c39b484cacca;p=lyx.git diff --git a/src/frontends/qt4/GuiProgress.cpp b/src/frontends/qt4/GuiProgress.cpp index 28367deddb..aec058cf8e 100644 --- a/src/frontends/qt4/GuiProgress.cpp +++ b/src/frontends/qt4/GuiProgress.cpp @@ -58,6 +58,8 @@ GuiProgress::GuiProgress() SLOT(doError(QString const &, QString const &))); connect(this, SIGNAL(information(QString const &, QString const &)), SLOT(doInformation(QString const &, QString const &))); + connect(this, SIGNAL(triggerFlush()), + SLOT(startFlushing())); flushDelay_.setInterval(200); flushDelay_.setSingleShot(true); @@ -67,7 +69,7 @@ GuiProgress::GuiProgress() QString GuiProgress::currentTime() { - return QTime::currentTime().toString("hh:mm:ss:zzz") + "ms"; + return QTime::currentTime().toString("hh:mm:ss.zzz"); } @@ -101,12 +103,18 @@ void GuiProgress::doClearMessages() } -void GuiProgress::lyxerrFlush() +void GuiProgress::startFlushing() { flushDelay_.start(); } +void GuiProgress::lyxerrFlush() +{ + triggerFlush(); +} + + void GuiProgress::updateWithLyXErr() { appendLyXErrMessage(toqstr(lyxerr_stream_.str())); @@ -116,13 +124,13 @@ void GuiProgress::updateWithLyXErr() void GuiProgress::lyxerrConnect() { - lyxerr.setSecond(&lyxerr_stream_); + lyxerr.setSecondStream(&lyxerr_stream_); } void GuiProgress::lyxerrDisconnect() { - lyxerr.setSecond(0); + lyxerr.setSecondStream(0); }