summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget_p.h
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-04-23 07:24:23 (GMT)
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-04-23 07:31:05 (GMT)
commit389c4fdebe681eb3af5a2431c390323f52a03c17 (patch)
treea262deb6809e9aa5a96c4ef91977b5fa1b27d35c /src/gui/kernel/qwidget_p.h
parent99d243860548d6be8a68dfd027c51530351d12cb (diff)
downloadQt-389c4fdebe681eb3af5a2431c390323f52a03c17.zip
Qt-389c4fdebe681eb3af5a2431c390323f52a03c17.tar.gz
Qt-389c4fdebe681eb3af5a2431c390323f52a03c17.tar.bz2
Carbon/Cocoa: It is possible to resize a widget above its maximum size
This is not strange since we never did anything to limit a resize within the max min boundries. This patch factores out the code that ensures this into a private function that is called both as a reaction to a resize event, but also if resize is done programatically. Task-number: 251893 Reviewed-by: Trenton Schulz
Diffstat (limited to 'src/gui/kernel/qwidget_p.h')
-rw-r--r--src/gui/kernel/qwidget_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget_p.h b/src/gui/kernel/qwidget_p.h
index 9e93f66..423e833 100644
--- a/src/gui/kernel/qwidget_p.h
+++ b/src/gui/kernel/qwidget_p.h
@@ -257,6 +257,7 @@ public:
void macUpdateIsOpaque();
void setEnabled_helper_sys(bool enable);
bool isRealWindow() const;
+ void applyMaxAndMinSizeConstraints(int &w, int &h);
#endif
void raise_sys();