Lines Matching defs:painter
324 TorrentDelegate :: paint( QPainter * painter,
329 painter->save( );
330 painter->setClipRect( option.rect );
331 drawTorrent( painter, option, *tor );
332 painter->restore( );
354 TorrentDelegate :: drawTorrent( QPainter * painter, const QStyleOptionViewItem& option, const Torrent& tor ) const
372 painter->save( );
380 painter->fillRect(option.rect, option.palette.brush(cg, QPalette::Highlight));
422 painter->setPen( QColor( "red" ) );
424 painter->setPen( option.palette.color( cg, cr ) );
425 tor.getMimeTypeIcon().paint( painter, iconArea, Qt::AlignCenter, im, qs );
426 painter->setFont( nameFont );
427 painter->drawText( nameArea, 0, nameFM.elidedText( nameStr, Qt::ElideRight, nameArea.width( ) ) );
428 painter->setFont( statusFont );
429 painter->drawText( statusArea, 0, statusFM.elidedText( statusStr, Qt::ElideRight, statusArea.width( ) ) );
430 painter->setFont( progressFont );
431 painter->drawText( progArea, 0, progressFM.elidedText( progressStr, Qt::ElideRight, progArea.width( ) ) );
446 style->drawControl( QStyle::CE_ProgressBar, myProgressBarStyle, painter );
448 painter->restore( );