diff options
author | Marius Kintel <marius@kintel.net> | 2012-01-06 18:10:33 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-01-09 23:01:50 (GMT) |
commit | fe3362faf825016606a8bcd60669c16965b0599c (patch) | |
tree | 1cfccc34acf462d9faefdfb8662c48cde878cbf9 /src/Preferences.cc | |
parent | c4695872392a6d1415752934be55c81de57de87e (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.cc | 4 |
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; |