void ThumbnailView::Delegate::paint( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const
{
    paintCellBackground( painter, option.rect );
    if ( widget()->isGridResizing())
        return;

    if ( index.data( Qt::DecorationRole ).value<QPixmap>().isNull() )
        return;

    paintCellPixmap( painter, option, index );
    paintCellText( painter, option, index );
}
Beispiel #2
0
void KBBGraphic::paintCell( QPainter* p, int row, int col )
{
    if (pix == NULL) paintCellDefault( p, row, col );
    else paintCellPixmap( p, row, col );
}