summaryrefslogtreecommitdiff
path: root/src/mainwin.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/mainwin.cc
parentc4695872392a6d1415752934be55c81de57de87e (diff)
Started on cache size management: Let cache sizes be read from Preferences, measure cache sizes in bytes
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r--src/mainwin.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc
index 57467fb..4198847 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -408,8 +408,13 @@ void
MainWindow::loadDesignSettings()
{
QSettings settings;
- if (settings.value("design/autoReload").toBool())
+ if (settings.value("design/autoReload").toBool()) {
designActionAutoReload->setChecked(true);
+ }
+ uint polySetCacheSize = Preferences::inst()->getValue("caches/polysetCacheSize").toUInt();
+ PolySetCache::instance()->setMaxSize(polySetCacheSize);
+ uint cgalCacheSize = Preferences::inst()->getValue("caches/cgalCacheSize").toUInt();
+ CGALCache::instance()->setMaxSize(cgalCacheSize);
}
MainWindow::~MainWindow()
contact: Jan Huwald // Impressum