From 502125671aa70a4a56645e4080e6bca306ed184d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 23 Nov 2007 23:57:11 +0000 Subject: [PATCH] only called once git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21754 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiApplication.cpp | 4 ---- src/graphics/LoaderQueue.cpp | 16 ++++------------ src/graphics/LoaderQueue.h | 7 ------- 3 files changed, 4 insertions(+), 23 deletions(-) diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index 1941c3bae0..ab19035881 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -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 diff --git a/src/graphics/LoaderQueue.cpp b/src/graphics/LoaderQueue.cpp index 3faf550fa0..e896419dcf 100644 --- a/src/graphics/LoaderQueue.cpp +++ b/src/graphics/LoaderQueue.cpp @@ -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) { diff --git a/src/graphics/LoaderQueue.h b/src/graphics/LoaderQueue.h index c68e017cf9..5a7940cb37 100644 --- a/src/graphics/LoaderQueue.h +++ b/src/graphics/LoaderQueue.h @@ -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(); -- 2.39.5