diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-05-16 16:39:50 +0200 |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-05-16 16:40:32 +0200 |
commit | 25f70314e0e2aa5cb913aba108d2e9c16117004a (patch) | |
tree | 3a7a3a115ade70e24cf3b2a8887cf356da58cfe6 /examples/qpa | |
parent | 276d60a4d6c9d1b72c4aa7df1f86e7ce9097beeb (diff) |
Implement QWindow minimum/maximum/base size hints and size increments.
Diffstat (limited to 'examples/qpa')
-rw-r--r-- | examples/qpa/windows/window.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/qpa/windows/window.cpp b/examples/qpa/windows/window.cpp index d08db5714b..76bc117793 100644 --- a/examples/qpa/windows/window.cpp +++ b/examples/qpa/windows/window.cpp @@ -23,9 +23,15 @@ Window::Window(QWindow *parent) if (parent) setGeometry(QRect(160, 120, 320, 240)); - else + else { setGeometry(QRect(10, 10, 640, 480)); + setSizeIncrement(QSize(10, 10)); + setBaseSize(QSize(640, 480)); + setMinimumSize(QSize(240, 160)); + setMaximumSize(QSize(800, 600)); + } + create(); QGuiApplicationPrivate::platformIntegration()->createWindowSurface(this, winId()); |