126 a.setPoint( 0, 0, 0) ;
127 a.setPoint( 1, width(), 0 );
128 a.setPoint( 2, 0, height() );
129 a.setPoint( 3, 0, 0 );
132 painter->setClipRegion( r1 );
133 painter->setBrush( backgroundColor().light() );
134 painter->drawRoundRect( 0, 0, width(), height(), 20, 20);
136 a.setPoint( 0, width(), height() );
137 a.setPoint( 1, width(), 0 );
138 a.setPoint( 2, 0, height() );
139 a.setPoint( 3, width(), height() );
142 painter->setClipRegion( r2 );
143 painter->setBrush( backgroundColor().dark() );
144 painter->drawRoundRect( 0, 0, width(), height(), 20, 20 );
146 painter->setClipping(
false );
147 if( width() > 12 && height() > 8 )
148 qDrawShadePanel( painter, 6, 4, width() - 12, height() - 8,
149 colorGroup(),
true, 1, 0L );
152 painter->setPen( colorGroup().base() );
153 painter->setBrush( colorGroup().base() );
157 painter->setPen( backgroundColor() );
158 painter->setBrush( backgroundColor() );
160 if( width() > 14 && height() > 10 )
161 painter->drawRect( 7, 5, width() - 14, height() - 10 );
163 drawButtonLabel( painter );
165 painter->setPen( colorGroup().text() );
166 painter->setBrush( NoBrush );
167 if( hasFocus() || m_bEditing )
169 if( width() > 16 && height() > 12 )
170 painter->drawRect( 8, 6, width() - 16, height() - 12 );