Skip to content

Commit

Permalink
1.1 Official Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Harinlen committed Jun 4, 2015
1 parent 525b9f4 commit 5ebbe43
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gridwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ void GridWidget::paintEvent(QPaintEvent *event)
QPainter painter(this);
painter.setPen(GroundGlobal::instance()->referenceLineColor());
painter.setBrush(QColor(0,0,0,0));
painter.setOpacity(0.3);
for(int i=0; i<width(); i+=m_gridStep)
{
painter.drawLine(i, 0, i, height());
}
for(int i=0; i<height(); i+=m_gridStep)
{
painter.drawLine(0, i, width(), i);
}
painter.setOpacity(1.0);
QFont textFont=font();
textFont.setPixelSize(4);
painter.setFont(textFont);
Expand Down

0 comments on commit 5ebbe43

Please sign in to comment.