]> git.lyx.org Git - features.git/commitdiff
only called once
authorAndré Pönitz <poenitz@gmx.net>
Fri, 23 Nov 2007 23:57:11 +0000 (23:57 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 23 Nov 2007 23:57:11 +0000 (23:57 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21754 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiApplication.cpp
src/graphics/LoaderQueue.cpp
src/graphics/LoaderQueue.h

index 1941c3bae04ae75739563b2bc232ead5264a92f7..ab19035881ca304822972e8bc4567df57a82fa43 100644 (file)
@@ -25,8 +25,6 @@
 #include "frontends/FontLoader.h"
 #include "frontends/FontMetrics.h"
 
-#include "graphics/LoaderQueue.h"
-
 #include "support/ExceptionMessage.h"
 #include "support/FileName.h"
 #include "support/lstrings.h"
@@ -187,8 +185,6 @@ GuiApplication::GuiApplication(int & argc, char ** argv)
        QWidget w;
        lyxrc.dpi = (w.logicalDpiX() + w.logicalDpiY()) / 2;
 
-       LoaderQueue::setPriority(10,100);
-
        guiApp = this;
 
        // Set the cache to 5120 kilobytes which corresponds to screen size of
index 3faf550fa055d6124940ea84bfba9d42e7567e2c..e896419dcf614983af6a2a9edf75c4ed662d2319 100644 (file)
@@ -23,9 +23,11 @@ using std::list;
 namespace lyx {
 namespace graphics {
 
-static int s_numimages_ = 5;
-static int s_millisecs_ = 500;
+//static int s_numimages_ = 5;
+//static int s_millisecs_ = 500;
 
+static int s_numimages_ = 10;
+static int s_millisecs_ = 500;
 
 LoaderQueue & LoaderQueue::get()
 {
@@ -54,16 +56,6 @@ void LoaderQueue::loadNext()
 }
 
 
-void LoaderQueue::setPriority(int numimages , int millisecs)
-{
-       s_numimages_ = numimages;
-       s_millisecs_ = millisecs;
-       LYXERR(Debug::GRAPHICS, "LoaderQueue:  priority set to "
-                               << s_numimages_ << " images at a time, "
-                               << s_millisecs_ << " milliseconds between calls");
-}
-
-
 LoaderQueue::LoaderQueue() : timer(s_millisecs_, Timeout::ONETIME),
                             running_(false)
 {
index c68e017cf9bbebf6942df3121ca40b2fe9454152..5a7940cb37aca57ae992201ca43c967b1b48f735 100644 (file)
@@ -38,13 +38,6 @@ public:
        bool running() const;
        ///get the and only instance of the class
        static LoaderQueue & get();
-       /** Adjusts the queue priority:
-        *  numimages is the number of images loaded in a particular call
-        *  from the timer.
-        *  millisecs is the time interval between calls.
-        *  Higher numimages, lower millisecs means higher priority.
-        */
-       static void setPriority(int numimages, int millisecs);
 private:
        /// This class is a singleton class... use LoaderQueue::get() instead
        LoaderQueue();