summaryrefslogtreecommitdiff
path: root/src/Preferences.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-01-06 18:10:33 (GMT)
committerMarius Kintel <marius@kintel.net>2012-01-09 23:01:50 (GMT)
commitfe3362faf825016606a8bcd60669c16965b0599c (patch)
tree1cfccc34acf462d9faefdfb8662c48cde878cbf9 /src/Preferences.cc
parentc4695872392a6d1415752934be55c81de57de87e (diff)
Started on cache size management: Let cache sizes be read from Preferences, measure cache sizes in bytes
Diffstat (limited to 'src/Preferences.cc')
-rw-r--r--src/Preferences.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Preferences.cc b/src/Preferences.cc
index e05106b..e504578 100644
--- a/src/Preferences.cc
+++ b/src/Preferences.cc
@@ -29,6 +29,8 @@
#include <QFontDatabase>
#include <QKeyEvent>
#include <QSettings>
+#include "PolySetCache.h"
+#include "CGALCache.h"
Preferences *Preferences::instance = NULL;
@@ -49,6 +51,8 @@ Preferences::Preferences(QWidget *parent) : QMainWindow(parent)
this->defaultmap["3dview/colorscheme"] = this->colorSchemeChooser->currentItem()->text();
this->defaultmap["advanced/opencsg_show_warning"] = true;
this->defaultmap["advanced/enable_opencsg_opengl1x"] = true;
+ this->defaultmap["caches/polysetCacheSize"] = uint(PolySetCache::instance()->maxSize());
+ this->defaultmap["caches/cgalCacheSize"] = uint(CGALCache::instance()->maxSize());
// Setup default font (Try to use a nice monospace font)
QString fontfamily;
contact: Jan Huwald // Impressum