Some style cleanup to libglabels.
This commit is contained in:
+9
-13
@@ -36,22 +36,14 @@ namespace libglabels
|
||||
|
||||
|
||||
private:
|
||||
Units( const QString &id, const QString &name, double pointsPerUnit )
|
||||
: mId(id), mName(name), mPointsPerUnit(pointsPerUnit)
|
||||
{
|
||||
mUnitsPerPoint = 1.0 / mPointsPerUnit;
|
||||
}
|
||||
|
||||
Units( const QString &id, const QString &name, double pointsPerUnit );
|
||||
|
||||
public:
|
||||
inline QString id() const { return mId; }
|
||||
|
||||
inline QString name() const { return mName; }
|
||||
|
||||
inline double pointsPerUnit() const { return mPointsPerUnit; }
|
||||
|
||||
inline double unitsPerPoint() const { return mUnitsPerPoint; }
|
||||
QString id() const;
|
||||
QString name() const;
|
||||
|
||||
double pointsPerUnit() const;
|
||||
double unitsPerPoint() const;
|
||||
|
||||
static Units *fromId( const QString &id );
|
||||
|
||||
@@ -78,4 +70,8 @@ namespace libglabels
|
||||
|
||||
}
|
||||
|
||||
|
||||
#include "Units.inl"
|
||||
|
||||
|
||||
#endif // libglabels_Units_h
|
||||
|
||||
Reference in New Issue
Block a user