Check the min. window sizes

* on smaller screens makes sure the min.sizes are not exceeded
* normally not changing min.sizes
This commit is contained in:
Klaus Basan
2018-01-19 20:36:36 +01:00
parent 464f64367e
commit d5c9a29618
4 changed files with 24 additions and 1 deletions

View File

@@ -170,6 +170,9 @@ namespace BlackGui
//! Forces a stylesheet update
static void forceStyleSheetUpdate(QWidget *widget);
//! Make sure that the min.sizes to not exceed the screen resolution
static void superviseMainWindowMinSizes(qreal wRatio = 0.85, qreal hRatio = 0.85);
private:
//! Constructor, use static methods only
CGuiUtility() {}