painter.drawPixmap( boundsO, pixOutside, boundsO );
painter.setPen( palette().color( QPalette::Active, QPalette::Mid ) );
painter.drawPixmap( boundsO, pixOutside, boundsO );
painter.setPen( palette().color( QPalette::Active, QPalette::Mid ) );
- QFontMetrics fm = QFontMetrics( font );
- const QRect rect = fm.boundingRect( QString::number( value() ) + '%' );
+ const QRect rect( 0, 0, 34, 15 );
painter.drawText( rect, Qt::AlignRight | Qt::AlignVCenter,
QString::number( value() ) + '%' );
painter.drawText( rect, Qt::AlignRight | Qt::AlignVCenter,
QString::number( value() ) + '%' );