examples: remove use of obsolete QStyleOption*V<N> typedefs
These are obsolete since Qt 5.0. Change-Id: I297477eff129558553f52a04bb7828d95db27969 Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
This commit is contained in:
parent
8c5acf6573
commit
1c9f53c4e5
@ -44,7 +44,7 @@ void BookDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option,
|
||||
const QModelIndex &index) const
|
||||
{
|
||||
if (index.column() != 5) {
|
||||
QStyleOptionViewItemV3 opt = option;
|
||||
QStyleOptionViewItem opt = option;
|
||||
opt.rect.adjust(0, 0, -1, -1); // since we draw the grid ourselves
|
||||
QSqlRelationalDelegate::paint(painter, opt, index);
|
||||
} else {
|
||||
|
@ -156,8 +156,8 @@ void ArthurStyle::drawPrimitive(PrimitiveElement element, const QStyleOption *op
|
||||
break;
|
||||
|
||||
case PE_FrameGroupBox:
|
||||
if (const QStyleOptionFrameV2 *group
|
||||
= qstyleoption_cast<const QStyleOptionFrameV2 *>(option)) {
|
||||
if (const QStyleOptionFrame *group
|
||||
= qstyleoption_cast<const QStyleOptionFrame *>(option)) {
|
||||
const QRect &r = group->rect;
|
||||
|
||||
painter->save();
|
||||
|
Loading…
Reference in New Issue
Block a user