QtCore/qmargins.h Source File
Go to the documentation of this file.
57 QMargins(
int left,
int top,
int right,
int bottom);
66 void setLeft(
int left);
68 void setRight(
int right);
69 void setBottom(
int bottom);
77 friend inline bool operator==(
const QMargins &,
const QMargins &);
78 friend inline bool operator!=(
const QMargins &,
const QMargins &);
88 { m_top = m_bottom = m_left = m_right = 0; }
91 : m_left(aleft), m_top(atop), m_right(aright), m_bottom(abottom) {}
94 {
return m_left==0 && m_top==0 && m_right==0 && m_bottom==0; }
116 { m_right = aright; }
119 { m_bottom = abottom; }
124 m1.m_left == m2.m_left &&
125 m1.m_top == m2.m_top &&
126 m1.m_right == m2.m_right &&
127 m1.m_bottom == m2.m_bottom;
133 m1.m_left != m2.m_left ||
134 m1.m_top != m2.m_top ||
135 m1.m_right != m2.m_right ||
136 m1.m_bottom != m2.m_bottom;
139 #ifndef QT_NO_DEBUG_STREAM
Q_CORE_EXPORT QTextStream & right(QTextStream &s)
Q_CORE_EXPORT QDebug operator<<(QDebug, const QMargins &)
#define QT_BEGIN_NAMESPACE
bool operator==(const QMargins &m1, const QMargins &m2)
bool operator!=(const QMargins &m1, const QMargins &m2)
void setBottom(int bottom)
Q_CORE_EXPORT QTextStream & left(QTextStream &s)
Q_DECLARE_TYPEINFO(QMargins, Q_MOVABLE_TYPE)