Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
+ nothing to moc for DAG RectItem class
  • Loading branch information
wwmayer committed Apr 13, 2016
1 parent 88e987d commit 3e941f2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Gui/DAGView/DAGRectItem.cpp
Expand Up @@ -43,9 +43,9 @@ RectItem::RectItem(QGraphicsItem* parent) : QGraphicsRectItem(parent)
void RectItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget)
{
painter->save();

QStyleOptionViewItemV4 styleOption;

styleOption.backgroundBrush = backgroundBrush;
if (editing)
styleOption.backgroundBrush = editBrush;
Expand All @@ -69,10 +69,8 @@ void RectItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option,
}
}
styleOption.rect = this->rect().toRect();

QApplication::style()->drawControl(QStyle::CE_ItemViewItem, &styleOption, painter);

painter->restore();
}

#include <moc_DAGRectItem.cpp>

0 comments on commit 3e941f2

Please sign in to comment.