21 #if QT_VERSION >= 0x050300
28 MarginStruct() : m_top(0), m_left(0), m_bottom(0), m_right(0) {}
29 MarginStruct(
double top,
double left,
double bottom,
double right) :
30 m_top(top), m_left(left), m_bottom(bottom), m_right(right) {}
32 void set(
double top,
double left,
double bottom,
double right) {m_top=top;m_bottom=bottom;m_left=left;m_right=right;}
33 void resetToZero() {m_top=0.0;m_bottom=0.0;m_left=0.0;m_right=0.0;}
34 bool isNull()
const {
return qFuzzyIsNull(m_left) && qFuzzyIsNull(m_top) && qFuzzyIsNull(m_right) && qFuzzyIsNull(m_bottom);}
36 void print()
const {qDebug() << m_top << m_left << m_bottom << m_right;}
37 inline double left()
const {
return m_left; }
38 inline double top()
const {
return m_top; }
39 inline double bottom()
const {
return m_bottom; }
40 inline double right()
const {
return m_right; }
42 inline void setLeft(
double aleft) { m_left = aleft; }
43 inline void setTop(
double atop) { m_top = atop; }
44 inline void setRight(
double aright) { m_right = aright; }
45 inline void setBottom(
double abottom) { m_bottom = abottom; }
55 #if QT_VERSION >= 0x050300
56 class ScMargins :
public QMarginsF
59 ScMargins(qreal left, qreal top, qreal right, qreal bottom) : QMarginsF(left, top, right, bottom) {};
60 void set(qreal left, qreal top, qreal right, qreal bottom)
Pagemargins and bleeds.
Definition: margins.h:25