Skip to content

Commit

Permalink
- Draw the rectangle after drawing the grid lines.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18992 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Feb 6, 2014
1 parent 547770c commit 147c023
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions OMEdit/OMEditGUI/GUI/Containers/ModelWidgetContainer.cpp
Expand Up @@ -1163,7 +1163,7 @@ void GraphicsView::drawBackground(QPainter *painter, const QRectF &rect)
if (mSkipBackground)
return;
// draw scene rectangle white background
painter->setPen(Qt::darkGray);
painter->setPen(Qt::NoPen);
painter->setBrush(QBrush(Qt::white, Qt::SolidPattern));
painter->drawRect(sceneRect());
if (mpModelWidget->getModelWidgetContainer()->isShowGridLines())
Expand Down Expand Up @@ -1209,12 +1209,9 @@ void GraphicsView::drawBackground(QPainter *painter, const QRectF &rect)
painter->drawLine(QPointF(rect.left(), 0), QPointF(rect.right(), 0));
painter->drawLine(QPointF(0, rect.top()), QPointF(0, rect.bottom()));
}
else
{
// draw scene rectangle
painter->setPen(Qt::darkGray);
painter->drawRect(sceneRect());
}
// draw scene rectangle
painter->setPen(Qt::darkGray);
painter->drawRect(sceneRect());
}

//! Defines what happens when clicking in a GraphicsView.
Expand Down

0 comments on commit 147c023

Please sign in to comment.