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
|
const QModelIndex &index) const
|
||||||
{
|
{
|
||||||
if (index.column() != 5) {
|
if (index.column() != 5) {
|
||||||
QStyleOptionViewItemV3 opt = option;
|
QStyleOptionViewItem opt = option;
|
||||||
opt.rect.adjust(0, 0, -1, -1); // since we draw the grid ourselves
|
opt.rect.adjust(0, 0, -1, -1); // since we draw the grid ourselves
|
||||||
QSqlRelationalDelegate::paint(painter, opt, index);
|
QSqlRelationalDelegate::paint(painter, opt, index);
|
||||||
} else {
|
} else {
|
||||||
|
@ -156,8 +156,8 @@ void ArthurStyle::drawPrimitive(PrimitiveElement element, const QStyleOption *op
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case PE_FrameGroupBox:
|
case PE_FrameGroupBox:
|
||||||
if (const QStyleOptionFrameV2 *group
|
if (const QStyleOptionFrame *group
|
||||||
= qstyleoption_cast<const QStyleOptionFrameV2 *>(option)) {
|
= qstyleoption_cast<const QStyleOptionFrame *>(option)) {
|
||||||
const QRect &r = group->rect;
|
const QRect &r = group->rect;
|
||||||
|
|
||||||
painter->save();
|
painter->save();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user