- if ( !act ) {
- p->fillRect( x, y+1, w, h-2, cg.mid() );
- p->drawRect( x, y+1, w, h-2 );
- }
- else {
- p->fillRect( x, y+1, w, h-2, cg.midlight() );
- QPen oldPen = p->pen();
- p->setPen( cg.mid() );
- p->drawRect( x, y+1, w, h-2 );
- p->setPen( oldPen );
- }
+ p->save();
+ p->fillRect( x, y, w, h, act ? cg.highlight() : cg.mid() );
+ p->setPen( act ? cg.highlightedText() : cg.buttonText() );