mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 21:05:12 +00:00
GuiView.cpp: fix compilation after r33533
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33540 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
10f1370464
commit
1c9a6f8b49
@ -100,6 +100,7 @@
|
|||||||
#include <QSplitter>
|
#include <QSplitter>
|
||||||
#include <QStackedWidget>
|
#include <QStackedWidget>
|
||||||
#include <QStatusBar>
|
#include <QStatusBar>
|
||||||
|
#include <QThread>
|
||||||
#include <QTime>
|
#include <QTime>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QToolBar>
|
#include <QToolBar>
|
||||||
@ -108,6 +109,14 @@
|
|||||||
|
|
||||||
#define EXPORT_in_THREAD 1
|
#define EXPORT_in_THREAD 1
|
||||||
|
|
||||||
|
struct Sleep : QThread
|
||||||
|
{
|
||||||
|
static void millisec(unsigned long ms)
|
||||||
|
{
|
||||||
|
QThread::usleep(ms * 1000);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
// QtConcurrent was introduced in Qt 4.4
|
// QtConcurrent was introduced in Qt 4.4
|
||||||
#if (QT_VERSION >= 0x040400)
|
#if (QT_VERSION >= 0x040400)
|
||||||
@ -2606,7 +2615,7 @@ void GuiView::dispatchVC(FuncRequest const & cmd)
|
|||||||
CompareOptions options;
|
CompareOptions options;
|
||||||
Compare * compare = new Compare(loadIfNeeded(FileName(f1)), loadIfNeeded(FileName(f2)), dest, options);
|
Compare * compare = new Compare(loadIfNeeded(FileName(f1)), loadIfNeeded(FileName(f2)), dest, options);
|
||||||
compare->start(QThread::LowPriority);
|
compare->start(QThread::LowPriority);
|
||||||
sleep(2);
|
Sleep::millisec(200);
|
||||||
lyx::dispatch(FuncRequest(LFUN_BUFFER_SWITCH, dest->absFileName()));
|
lyx::dispatch(FuncRequest(LFUN_BUFFER_SWITCH, dest->absFileName()));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user