Subversion Repositories OpenInventory

Compare Revisions

Regard whitespace Rev 204 → Rev 205

/trunk/DBViewer/delegate.cpp
544,6 → 544,9
*/
 
 
 
 
 
QPalette::ColorGroup cg = (option.state & QStyle::State_Enabled) ?
((option.state & QStyle::State_Active) ? QPalette::Normal : QPalette::Inactive ) :
QPalette::Disabled;
553,11 → 556,13
 
painter->fillRect(option.rect, option.palette.color(cg, QPalette::Highlight));
 
 
 
int nX = option.rect.x() + ( ( option.rect.width() - m_pxPicture.rect().width() ) / 2 );
int nY = option.rect.y() + ( ( option.rect.height() - m_pxPicture.rect().height() ) / 2 );
// painter->setRenderHint(QPainter::Antialiasing);
painter->drawPixmap( nX, nY, m_pxPicture );
 
 
// drawFocus(painter, option, option.rect.adjusted(0, 0, -1, -1)); // since we draw the grid ourselves
 
/*