Changeset 54


Ignore:
Timestamp:
Jan 15, 2006, 11:16:48 PM (20 years ago)
Author:
dmik
Message:

Fixed [Qt bug]: QWindows::drawPrimitive(PE_WindowFrame) ignored opt.lineWidth(); as a result, frames with line witdth > 2 were not fully repainted (unless the the widget background was erased by the system).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/styles/qwindowsstyle.cpp

    r8 r54  
    646646            popupCG.setColor( QColorGroup::Light, cg.background() );
    647647            popupCG.setColor( QColorGroup::Midlight, cg.light() );
    648             qDrawWinPanel(p, r, popupCG, flags & Style_Sunken);
    649         }
    650         break;
     648
     649            int lw = opt.isDefault() ? pixelMetric(PM_MDIFrameWidth)
     650                        : opt.lineWidth();
     651
     652            if (lw == 2) {
     653                qDrawWinPanel(p, r, popupCG, flags & Style_Sunken);
     654            } else {
     655                QBrush fill = QBrush( cg.background() );
     656                qDrawWinPanel( p, r, popupCG, flags & Style_Sunken, &fill );
     657            }
     658            break;
     659        }
    651660
    652661    default:
Note: See TracChangeset for help on using the changeset viewer.