Qt 4.8
Classes | Functions
qmargins.h File Reference
#include <QtCore/qnamespace.h>

Go to the source code of this file.

Classes

class  QMargins
 The QMargins class defines the four margins of a rectangle. More...
 

Functions

bool operator!= (const QMargins &m1, const QMargins &m2)
 
Q_CORE_EXPORT QDebug operator<< (QDebug, const QMargins &)
 
bool operator== (const QMargins &m1, const QMargins &m2)
 
 Q_DECLARE_TYPEINFO (QMargins, Q_MOVABLE_TYPE)
 

Function Documentation

◆ operator!=()

bool operator!= ( const QMargins m1,
const QMargins m2 
)
inline

Definition at line 130 of file qmargins.h.

131 {
132  return
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;
137 }
int m_right
Definition: qmargins.h:74
int m_bottom
Definition: qmargins.h:75
int m_left
Definition: qmargins.h:72
int m_top
Definition: qmargins.h:73

◆ operator<<()

Q_CORE_EXPORT QDebug operator<< ( QDebug  ,
const QMargins  
)

Definition at line 199 of file qmargins.cpp.

Referenced by operator!=().

199  {
200  dbg.nospace() << "QMargins(" << m.left() << ", "
201  << m.top() << ", " << m.right() << ", " << m.bottom() << ')';
202  return dbg.space();
203 }

◆ operator==()

bool operator== ( const QMargins m1,
const QMargins m2 
)
inline

Definition at line 121 of file qmargins.h.

122 {
123  return
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;
128 }
int m_right
Definition: qmargins.h:74
int m_bottom
Definition: qmargins.h:75
int m_left
Definition: qmargins.h:72
int m_top
Definition: qmargins.h:73

◆ Q_DECLARE_TYPEINFO()

Q_DECLARE_TYPEINFO ( QMargins  ,
Q_MOVABLE_TYPE   
)