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);
QString GuiProgress::currentTime()
{
- return QTime::currentTime().toString("hh:mm:ss:zzz") + "ms";
+ return QTime::currentTime().toString("hh:mm:ss.zzz");
}
}
-void GuiProgress::lyxerrFlush()
+void GuiProgress::startFlushing()
{
flushDelay_.start();
}
+void GuiProgress::lyxerrFlush()
+{
+ triggerFlush();
+}
+
+
void GuiProgress::updateWithLyXErr()
{
appendLyXErrMessage(toqstr(lyxerr_stream_.str()));
void GuiProgress::lyxerrConnect()
{
- lyxerr.setSecond(&lyxerr_stream_);
+ lyxerr.setSecondStream(&lyxerr_stream_);
}
void GuiProgress::lyxerrDisconnect()
{
- lyxerr.setSecond(0);
+ lyxerr.setSecondStream(0);
}