mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 16:44:39 +03:00
Typo has been fixed
This commit is contained in:
parent
693e45d6d7
commit
5f268a5b1a
@ -64,10 +64,10 @@ private:
|
|||||||
|
|
||||||
class LIMEREPORT_EXPORT ItemGeometry{
|
class LIMEREPORT_EXPORT ItemGeometry{
|
||||||
public:
|
public:
|
||||||
enum Type{Milimeters, Pixels};
|
enum Type{Millimeters, Pixels};
|
||||||
ItemGeometry(qreal x, qreal y, qreal width, qreal height, Qt::Alignment anchor, Type type = Milimeters)
|
ItemGeometry(qreal x, qreal y, qreal width, qreal height, Qt::Alignment anchor, Type type = Millimeters)
|
||||||
:m_x(x), m_y(y), m_width(width), m_height(height), m_type(type), m_anchor(anchor){}
|
:m_x(x), m_y(y), m_width(width), m_height(height), m_type(type), m_anchor(anchor){}
|
||||||
ItemGeometry(): m_x(0), m_y(0), m_width(0), m_height(0), m_type(Milimeters){}
|
ItemGeometry(): m_x(0), m_y(0), m_width(0), m_height(0), m_type(Millimeters){}
|
||||||
|
|
||||||
qreal x() const;
|
qreal x() const;
|
||||||
void setX(const qreal &x);
|
void setX(const qreal &x);
|
||||||
|
@ -2004,7 +2004,7 @@ QPointF WatermarkHelper::mapToPage(const PageItemDesignIntf &page)
|
|||||||
qreal WatermarkHelper::valueToPixels(qreal value)
|
qreal WatermarkHelper::valueToPixels(qreal value)
|
||||||
{
|
{
|
||||||
switch (m_watermark.geometry().type()) {
|
switch (m_watermark.geometry().type()) {
|
||||||
case LimeReport::ItemGeometry::Milimeters:
|
case LimeReport::ItemGeometry::Millimeters:
|
||||||
return value * Const::mmFACTOR;
|
return value * Const::mmFACTOR;
|
||||||
case LimeReport::ItemGeometry::Pixels:
|
case LimeReport::ItemGeometry::Pixels:
|
||||||
return value;
|
return value;
|
||||||
|
@ -64,10 +64,10 @@ private:
|
|||||||
|
|
||||||
class LIMEREPORT_EXPORT ItemGeometry{
|
class LIMEREPORT_EXPORT ItemGeometry{
|
||||||
public:
|
public:
|
||||||
enum Type{Milimeters, Pixels};
|
enum Type{Millimeters, Pixels};
|
||||||
ItemGeometry(qreal x, qreal y, qreal width, qreal height, Qt::Alignment anchor, Type type = Milimeters)
|
ItemGeometry(qreal x, qreal y, qreal width, qreal height, Qt::Alignment anchor, Type type = Millimeters)
|
||||||
:m_x(x), m_y(y), m_width(width), m_height(height), m_type(type), m_anchor(anchor){}
|
:m_x(x), m_y(y), m_width(width), m_height(height), m_type(type), m_anchor(anchor){}
|
||||||
ItemGeometry(): m_x(0), m_y(0), m_width(0), m_height(0), m_type(Milimeters){}
|
ItemGeometry(): m_x(0), m_y(0), m_width(0), m_height(0), m_type(Millimeters){}
|
||||||
|
|
||||||
qreal x() const;
|
qreal x() const;
|
||||||
void setX(const qreal &x);
|
void setX(const qreal &x);
|
||||||
|
Loading…
Reference in New Issue
Block a user