summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformwindow.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-06-10 14:27:22 +0200
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-06-10 13:03:24 +0000
commitac2a44c716d84979747e166f43129e59612e1a97 (patch)
treebafaaeeeddcdb8744100fb7c3498b871c05241da /src/gui/kernel/qplatformwindow.h
parent34e06b48678b60716d614281898fd4e18fb4d586 (diff)
Add QPlatformWindow::windowClosestAcceptableGeometry().
Add a function to determine the closest acceptable geometry (height-for-width) to QPlatformWindow similar to the existing QPlatformWindow::windowMinimumSize(), windowMaximumSize()... Clean up the hack in the Windows platform plugin accordingly. Change-Id: I96e943cfdbafdd0ff444e0d53ee0bdf8603d33df Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
Diffstat (limited to 'src/gui/kernel/qplatformwindow.h')
-rw-r--r--src/gui/kernel/qplatformwindow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformwindow.h b/src/gui/kernel/qplatformwindow.h
index c1f2a4bdf1..692ae862db 100644
--- a/src/gui/kernel/qplatformwindow.h
+++ b/src/gui/kernel/qplatformwindow.h
@@ -138,6 +138,8 @@ public:
QSize windowBaseSize() const;
QSize windowSizeIncrement() const;
QRect windowGeometry() const;
+ QRectF windowClosestAcceptableGeometry(const QRectF &nativeRect) const;
+
protected:
static QString formatWindowTitle(const QString &title, const QString &separator);
QPlatformScreen *screenForGeometry(const QRect &newGeometry) const;