rem: p->setFont( mFont ); else p->setFont( adapt( p->font(), mItalic, mBold, mStrikeOut ) );
add: font = mFont; else { if ( mItalic ) font.setItalic( true ); if ( mBold ) font.setBold( true ); } if ( mStrikeOut ) font.setStrikeOut( true ); p->setFont( font );
context: void CategoryListViewItem::paintCell( QPainter * p, const QColorGroup & cg, int column, int width, int alignment ) {  QColorGroup _cg = cg;  if ( mHasFont )    p->setFont( mFont );  else    p->setFont( adapt( p->font(), mItalic, mBold, mStrikeOut ) );  if ( mForegroundColor.isValid() )    _cg.setColor( QColorGroup::Text, mForegroundColor );  if ( mBackgroundColor.isValid() )    _cg.setColor( QColorGroup::Base, mBackgroundColor );  QListViewItem::paintCell( p, _cg, column, width, alignment );}