Changeset 769 for trunk/src/gui/widgets/qdockarealayout.cpp
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/widgets/qdockarealayout.cpp
r651 r769 1991 1991 const int tabBarShape = 0; 1992 1992 #endif 1993 QDockAreaLayoutInfo *info = new QDockAreaLayoutInfo(sep, dockPos, o, 1994 tabBarShape, mainWindow); 1995 QDockAreaLayoutItem item(info); 1993 QDockAreaLayoutItem item(new QDockAreaLayoutInfo(sep, dockPos, o, 1994 tabBarShape, mainWindow)); 1996 1995 stream >> item.pos >> item.size >> dummy >> dummy; 1997 if (!info->restoreState(stream, widgets, testing)) 1996 //we need to make sure the element is in the list so the dock widget can eventually be docked correctly 1997 if (!testing) 1998 item_list.append(item); 1999 2000 //here we need to make sure we change the item in the item_list 2001 QDockAreaLayoutItem &lastItem = testing ? item : item_list.last(); 2002 2003 if (!lastItem.subinfo->restoreState(stream, widgets, testing)) 1998 2004 return false; 1999 2005 2000 if (!testing) {2001 item_list.append(item);2002 }2003 2006 } else { 2004 2007 return false; … … 2636 2639 bottom_hint = bottom_hint.boundedTo(bottom_max).expandedTo(bottom_min); 2637 2640 2638 fallbackToSizeHints = !have_central;2641 fallbackToSizeHints = false; 2639 2642 2640 2643 if (_ver_struct_list != 0) {
Note:
See TracChangeset
for help on using the changeset viewer.