]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiApplication.cpp
The BufferView/WorkArea/LyXView reorg a.k.a Multiple WorkAreas:
[features.git] / src / frontends / qt4 / GuiApplication.cpp
index 18da529ddc931eef7e95a7b6df14e621b421eabf..aaf7add1170615015cd53c8d87056b8be272b8ec 100644 (file)
@@ -42,6 +42,7 @@
 #include <QFileOpenEvent>
 #include <QLocale>
 #include <QLibraryInfo>
+#include <QPixmapCache>
 #include <QTextCodec>
 #include <QTimer>
 #include <QTranslator>
@@ -147,6 +148,10 @@ GuiApplication::GuiApplication(int & argc, char ** argv)
        LoaderQueue::setPriority(10,100);
 
        guiApp = this;
+
+       // Set the cache to 5120 kilobytes which corresponds to screen size of
+       // 1280 by 1024 pixels with a color depth of 32 bits.
+       QPixmapCache::setCacheLimit(5120);
 }