Summary: | Plastik does not honor QButtonGroup::setLineWidth( 0 ) | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | Alexander Reinholdt <alexander.reinholdt> |
Component: | kstyle | Assignee: | Karol Szwed <gallium> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sgiessl |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | QButtonGroup line width error screenshot |
Description
Alexander Reinholdt
2004-09-12 11:36:54 UTC
Created attachment 7492 [details]
QButtonGroup line width error screenshot
This screenshot shows the problem. The QButtongroup with the two QRadioButtons
in it (super/sudo) has been made with the following code sequence:
QButtonGroup *suidBox = new QButtonGroup( 2, Qt::Horizontal, superBox,
"SUIDBox" );
suidBox->setLineWidth( 0 );
suidBox->setInsideMargin( 1 );
m_super = new QRadioButton( "super", suidBox, "SuperButton" );
m_sudo = new QRadioButton( "sudo", suidBox, "SudoButton" );
One can clearly see, that the line width is not set to 0 as it should be but to
1 most likely.
CVS commit by giessl: Don't draw Panel with QButtonGroup::setLineWidth(0) CCMAIL: 89342-done@bugs.kde.org M +5 -1 plastik.cpp 1.92 --- kdeartwork/styles/plastik/plastik.cpp #1.91:1.92 @@ -1855,4 +1855,6 @@ void PlastikStyle::drawPrimitive(Primiti case PE_PanelGroupBox: case PE_GroupBoxFrame: { + if ( opt.isDefault() || opt.lineWidth() <= 0 ) + break; renderPanel(p, r, cg, false); @@ -1862,4 +1864,6 @@ void PlastikStyle::drawPrimitive(Primiti case PE_WindowFrame: case PE_Panel: { + if ( opt.isDefault() || opt.lineWidth() <= 0 ) + break; renderPanel(p, r, cg, true, sunken); break; |