Added unit-independent distance type.

This commit is contained in:
Jim Evins
2016-03-13 21:03:09 -04:00
parent 573369b6da
commit a6aa0d921f
74 changed files with 1452 additions and 996 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
/* LabelModelShapeObject.cpp
*
* Copyright (C) 2013 Jim Evins <evins@snaught.com>
* Copyright (C) 2013-2016 Jim Evins <evins@snaught.com>
*
* This file is part of gLabels-qt.
*
@@ -67,7 +67,7 @@ namespace glabels
///
/// Line Width Property Getter
///
double LabelModelShapeObject::lineWidth( void ) const
libglabels::Distance LabelModelShapeObject::lineWidth( void ) const
{
return mLineWidth;
}
@@ -76,7 +76,7 @@ namespace glabels
///
/// Line Width Property Setter
///
void LabelModelShapeObject::setLineWidth( double value )
void LabelModelShapeObject::setLineWidth( const libglabels::Distance& value )
{
if ( mLineWidth != value )
{