diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-03-25 13:12:48 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-03-25 13:12:48 (GMT) |
commit | 35528b2109db5832cbd0a4fcde6e6cd1f5bdd6db (patch) | |
tree | 4227708a6aec07a738fe06409599443ce6f75410 | |
parent | 367e468dc68c7924be86118df49f33d96380a5b7 (diff) | |
download | Qt-35528b2109db5832cbd0a4fcde6e6cd1f5bdd6db.zip Qt-35528b2109db5832cbd0a4fcde6e6cd1f5bdd6db.tar.gz Qt-35528b2109db5832cbd0a4fcde6e6cd1f5bdd6db.tar.bz2 |
Fixed the gap that was not appearing on a QMainWindow
The default size of a docka area invalid and thus the gap
had an invalid size.
Task-number: 248069
Reviewed-by: ogoffart
-rw-r--r-- | src/gui/widgets/qdockarealayout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qdockarealayout.cpp b/src/gui/widgets/qdockarealayout.cpp index 9261c63..4f0ec1e 100644 --- a/src/gui/widgets/qdockarealayout.cpp +++ b/src/gui/widgets/qdockarealayout.cpp @@ -579,7 +579,7 @@ void QDockAreaLayoutInfo::fitItems() QLayoutStruct &ls = layout_struct_list[j++]; ls.init(); ls.empty = false; - if (gap || (item.flags & QDockAreaLayoutItem::KeepSize)) { + if (item.flags & QDockAreaLayoutItem::KeepSize) { ls.minimumSize = ls.maximumSize = ls.sizeHint = item.size; ls.expansive = false; ls.stretch = 0; |