Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/widgets/qdockarealayout.cpp

    r651 r769  
    19911991            const int tabBarShape = 0;
    19921992#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));
    19961995            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))
    19982004                return false;
    19992005
    2000             if (!testing) {
    2001                 item_list.append(item);
    2002             }
    20032006        } else {
    20042007            return false;
     
    26362639    bottom_hint = bottom_hint.boundedTo(bottom_max).expandedTo(bottom_min);
    26372640
    2638     fallbackToSizeHints = !have_central;
     2641    fallbackToSizeHints = false;
    26392642
    26402643    if (_ver_struct_list != 0) {
Note: See TracChangeset for help on using the changeset viewer.