Changeset 1008


Ignore:
Timestamp:
Aug 19, 2011, 12:41:38 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

OS/2: Could not hide reparented child widgets with native handles.

Widgets that were reparented from top-level ones would always
flash on top of siblings on repaint even when hidden because the
code introduced in r758 could not see their native visibility state
due to the old handle (acidentially left out after reparenting) being
used in the API call.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/gui/kernel/qwidget_pm.cpp

    r1007 r1008  
    13951395            qDebug() << "|Destroying window" << this
    13961396                     << "\n|  hwnd"  << qDebugFmtHex(id);
     1397            if (id != winId())
     1398                qDebug() << "(frame) \n|  hwnd" << qDebugFmtHex(winId()) << "(client)";
    13971399#endif
    13981400            qt_WinDestroyWindow(id);
    13991401        }
    14001402        QT_TRY {
     1403            QTLWExtra *top = d->maybeTopData();
     1404            if (top)
     1405                top->fId = 0;
    14011406            d->setWinId(0);
    14021407        } QT_CATCH (const std::bad_alloc &) {
     
    14701475    }
    14711476
     1477    QTLWExtra *top = maybeTopData();
     1478    if (top)
     1479        top->fId = 0;
    14721480    setWinId(0);
    14731481
Note: See TracChangeset for help on using the changeset viewer.