From 3e941f2b8742c895e7ad3ef1b30d7eae73ae4eca Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 13 Apr 2016 19:18:01 +0200 Subject: [PATCH] + nothing to moc for DAG RectItem class --- src/Gui/DAGView/DAGRectItem.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Gui/DAGView/DAGRectItem.cpp b/src/Gui/DAGView/DAGRectItem.cpp index 51bbd3376..ba3dc65bf 100644 --- a/src/Gui/DAGView/DAGRectItem.cpp +++ b/src/Gui/DAGView/DAGRectItem.cpp @@ -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; @@ -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