|
|
|
|
@ -71,7 +71,7 @@ void PageItemDelegate::drawDisplay( QPainter *painter, const QStyleOptionViewIte |
|
|
|
|
else |
|
|
|
|
pageRect.translate( newRect.width() + PAGEITEMDELEGATE_INTERNALMARGIN - 2 * margindelta, 0 ); |
|
|
|
|
QItemDelegate::drawDisplay( painter, option, newRect, text ); |
|
|
|
|
QStyleOptionViewItemV2 newoption( option ); |
|
|
|
|
QStyleOptionViewItem newoption( option ); |
|
|
|
|
newoption.displayAlignment = ( option.displayAlignment & ~Qt::AlignHorizontal_Mask ) | Qt::AlignRight; |
|
|
|
|
QItemDelegate::drawDisplay( painter, newoption, pageRect, page ); |
|
|
|
|
} |
|
|
|
|
|