Хранилища Subversion OpenInventory

Сравнить редакции

Не учитывать пробелы Редакция 205 → Редакция 204

/trunk/DBViewer/delegate.cpp
544,9 → 544,6
*/
 
 
 
 
 
QPalette::ColorGroup cg = (option.state & QStyle::State_Enabled) ?
((option.state & QStyle::State_Active) ? QPalette::Normal : QPalette::Inactive ) :
QPalette::Disabled;
556,13 → 553,11
 
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
 
/*