ui: overlay window base size

* added property in application settings to define a basic width and height that is used when creating new overlay windows.
* fixed crash in tests
This commit is contained in:
malte_langkabel
2016-06-14 15:27:03 +02:00
parent b7ba10e119
commit 98b13ef24d
6 changed files with 22 additions and 6 deletions
+10
View File
@@ -153,6 +153,16 @@ void ApplicationSettings::setIndexerThreadCount(const int count)
setValue<int>("application/indexer_thread_count", count);
}
int ApplicationSettings::getWindowBaseWidth() const
{
return getValue<int>("application/window_base_width", 500);
}
int ApplicationSettings::getWindowBaseHeight() const
{
return getValue<int>("application/window_base_height", 500);
}
int ApplicationSettings::getCodeTabWidth() const
{
return getValue<int>("code/tab_width", 4);