mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
start the timer in the correct thread
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37224 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b5216b25f7
commit
726b602329
@ -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);
|
||||
@ -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()));
|
||||
|
@ -55,8 +55,9 @@ Q_SIGNALS:
|
||||
void appendLyXErrMessage(QString const & text);
|
||||
|
||||
|
||||
void clearMessageText();
|
||||
void clearMessageText();
|
||||
void updateStatusBarMessage(QString const &);
|
||||
void triggerFlush();
|
||||
|
||||
// Alert interface
|
||||
void warning(QString const & title, QString const & message);
|
||||
@ -76,7 +77,8 @@ private Q_SLOTS:
|
||||
void doError(QString const &, QString const &);
|
||||
void doInformation(QString const &, QString const &);
|
||||
|
||||
void updateWithLyXErr();
|
||||
void updateWithLyXErr();
|
||||
void startFlushing();
|
||||
|
||||
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user