Format code

This commit is contained in:
jfmcarreira committed 2016-05-04 17:42:15 +01:00
1 parent 501e24fc5d
commit 404e58e0ce
109 files changed
+494 -593

No files matched your search

+5 -6
View File
@@ -34,7 +34,6 @@
#include "GridManager.h"
////////////////////////////////////////////////////////////////////////////////
// Constructor
////////////////////////////////////////////////////////////////////////////////
@@ -67,8 +66,8 @@ void GridManager::drawGrid( QPixmap &image, const QRect& area, QPainter *painter
switch( style )
{
case IntersectionDot:
case IntersectionCross:
{
case IntersectionCross:
{
painter->setPen( mainPen );
// Draw crosses or dots on intersections
for( int x = offsetx; x <= area.right(); x += hSpacing )
@@ -96,7 +95,7 @@ void GridManager::drawGrid( QPixmap &image, const QRect& area, QPainter *painter
break;
}
case Dashed:
{
{
// Change pen to the dashed line
mainPen.setStyle( Qt::DashLine );
}
@@ -136,12 +135,12 @@ void GridManager::drawGrid( QPixmap &image, const QRect& area, QPainter *painter
////////////////////////////////////////////////////////////////////////////////
QRect GridManager::rectContains( const QPoint &pos ) const
{
{
return rectContains( pos.x(), pos.y() );
}
QRect GridManager::rectContains( int x, int y ) const
{
{
QRect rect;
QPoint pos;
int multiPosX;