#include "qt_helpers.h"
+#include <QTime>
namespace lyx {
if (progress) {
connect(progress, SIGNAL(processStarted(QString const &)), this, SLOT(appendText(QString const &)));
- connect(progress, SIGNAL(processFinished(QString const &)), this, SLOT(appendText(QString const &)));
+ //connect(progress, SIGNAL(processFinished(QString const &)), this, SLOT(appendText(QString const &)));
connect(progress, SIGNAL(appendMessage(QString const &)), this, SLOT(appendText(QString const &)));
connect(progress, SIGNAL(appendError(QString const &)), this, SLOT(appendText(QString const &)));
- connect(progress, SIGNAL(clearMessages()), this, SLOT(clearText(QString const &)));
+ connect(progress, SIGNAL(clearMessages()), this, SLOT(clearText()));
}
}
void GuiProgressView::appendText(QString const & text)
{
- text_edit.insertPlainText(text);
+ if (text.isEmpty())
+ return;
+ QString time = QTime::currentTime().toString();
+ text_edit.insertPlainText(time + ": " + text + "\n");
text_edit.ensureCursorVisible();
}
-
-
Dialog * createGuiProgressView(GuiView & guiview)
{
#ifdef Q_WS_MACX