Reconcile style accross all source files.

- All glabels code is in "glabels" top-level namespace.
- Other assorted cleanup.
This commit is contained in:
Jim Evins
2017-01-15 22:58:53 -05:00
parent 44aa31d074
commit b797d13e40
153 changed files with 17673 additions and 16841 deletions
+69 -62
View File
@@ -21,67 +21,74 @@
#include "Size.h"
///
/// Constructor
///
Size::Size() : mW(0), mH(0)
namespace glabels
{
}
///
/// Constructor
///
Size::Size( const glabels::Distance& w, const glabels::Distance& h ) : mW(w), mH(h)
{
}
///
/// Get w
///
glabels::Distance Size::w( void ) const
{
return mW;
}
///
/// Set w
///
void Size::setW( const glabels::Distance& value )
{
mW = value;
}
///
/// Get h
///
glabels::Distance Size::h( void ) const
{
return mH;
}
///
/// Set h
///
void Size::setH( const glabels::Distance& value )
{
mH = value;
}
///
/// Convert to a QSizeF
///
QSizeF Size::qSizeF() const
{
QSizeF s;
s.setWidth( mW.pt() );
s.setHeight( mH.pt() );
return s;
///
/// Constructor
///
Size::Size() : mW(0), mH(0)
{
// empty
}
///
/// Constructor
///
Size::Size( const Distance& w, const Distance& h ) : mW(w), mH(h)
{
// empty
}
///
/// Get w
///
Distance Size::w( void ) const
{
return mW;
}
///
/// Set w
///
void Size::setW( const Distance& value )
{
mW = value;
}
///
/// Get h
///
Distance Size::h( void ) const
{
return mH;
}
///
/// Set h
///
void Size::setH( const Distance& value )
{
mH = value;
}
///
/// Convert to a QSizeF
///
QSizeF Size::qSizeF() const
{
QSizeF s;
s.setWidth( mW.pt() );
s.setHeight( mH.pt() );
return s;
}
}