]> git.lyx.org Git - features.git/commitdiff
Revert r33533.
authorPavel Sanda <sanda@lyx.org>
Tue, 23 Feb 2010 03:51:49 +0000 (03:51 +0000)
committerPavel Sanda <sanda@lyx.org>
Tue, 23 Feb 2010 03:51:49 +0000 (03:51 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33543 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index aaba193d7c0efdd0d677e3c5389ed5b6b838ce95..25540eaf03ce13ffa602e408ff231d9c3cb9baf0 100644 (file)
 #include <QSplitter>
 #include <QStackedWidget>
 #include <QStatusBar>
-#include <QThread>
 #include <QTime>
 #include <QTimer>
 #include <QToolBar>
 
 #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
 #if (QT_VERSION >= 0x040400)
 #include <QFuture>
@@ -2610,6 +2600,9 @@ void GuiView::dispatchVC(FuncRequest const & cmd)
                // FIXME We need to call comparison feature here.
                // This is quick and dirty code for testing VC.
                // We need that comparison feature has some LFUN_COMPARE <FLAG> file1 file1
+               // where <FLAG> specifies whether we want GUI dialog or just launch
+               // running with defaults.
+               /*
                FileName initpath(lyxrc.document_path);
                Buffer * dest = newUnnamedFile(initpath, to_utf8(_("differences")));
                CompareOptions options;
@@ -2617,6 +2610,7 @@ void GuiView::dispatchVC(FuncRequest const & cmd)
                compare->start(QThread::LowPriority);
                Sleep::millisec(200);
                lyx::dispatch(FuncRequest(LFUN_BUFFER_SWITCH, dest->absFileName()));
+               */
                break;
        }