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
+5 -1
View File
@@ -8,6 +8,7 @@
#include "qt/utility/QtDeviceScaledPixmap.h"
#include "qt/utility/utilityQt.h"
#include "settings/ApplicationSettings.h"
#include "utility/ResourcePaths.h"
QtWindow::QtWindow(QWidget* parent)
@@ -56,7 +57,10 @@ QtWindow::QtWindow(QWidget* parent)
QSize QtWindow::sizeHint() const
{
return QSize(500, 500);
return QSize(
ApplicationSettings::getInstance()->getWindowBaseWidth(),
ApplicationSettings::getInstance()->getWindowBaseHeight()
);
}
void QtWindow::setup()