Changeset 105


Ignore:
Timestamp:
Jul 27, 2006, 7:22:05 PM (19 years ago)
Author:
dmik
Message:

Widgets: Fixed [Qt bug]: QDockWindow's area covered by the dock window handler was not properly erased if moving was disabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/widgets/qdockwindow.cpp

    r8 r105  
    398398void QDockWindowHandle::paintEvent( QPaintEvent *e )
    399399{
     400#if defined (Q_WS_PM)
     401    // This widget has the WNoAutoErase flag, so we must erase the background
     402    // even if we don't paint anything else. Win32 version feels ok without this,
     403    // because it doesn't actually fully obey WResizeNoErase and WRepaintNoErase:
     404    // WM_ERASEBKGND always erases the background before WM_PAINT and after
     405    // every resize.
     406    erase();
     407#endif   
    400408    if ( (!dockWindow->dockArea || mousePressed) && !opaque )
    401409        return;
     410#if !defined (Q_WS_PM)
    402411    erase();
     412#endif   
    403413    QPainter p( this );
    404414    QStyle::SFlags flags = QStyle::Style_Default;
Note: See TracChangeset for help on using the changeset viewer.