42 #ifndef QGRAPHICSLAYOUT_P_H 43 #define QGRAPHICSLAYOUT_P_H 56 #include <QtCore/qglobal.h> 58 #if !defined(QT_NO_GRAPHICSVIEW) || (QT_EDITION & QT_MODULE_GRAPHICSVIEW) != QT_MODULE_GRAPHICSVIEW 62 #include <QtGui/qstyle.h> 63 #include <QtGui/qwidget.h> 64 #include <QtGui/qstyleoption.h> 74 static int checked_env = -1;
76 checked_env = !!
qgetenv(
"QT_GRAPHICSLAYOUT_DEBUG").
toInt();
104 {
return !(*
this == other); }
152 #endif //QT_NO_GRAPHICSVIEW
Q_CORE_EXPORT QByteArray qgetenv(const char *varName)
#define QT_END_NAMESPACE
This macro expands to.
bool operator!=(const QLayoutStyleInfo &other)
QLayoutStyleInfo(QStyle *style, QWidget *widget)
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option=0, const QWidget *widget=0) const =0
Returns the value of the given pixel metric.
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
bool qt_graphicsLayoutDebug()
PixelMetric
This enum describes the various available pixel metrics.
bool operator==(const QLayoutStyleInfo &other)
Q_CORE_EXPORT QTextStream & right(QTextStream &s)
int layoutSpacing(QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption *option=0, const QWidget *widget=0) const
Returns the spacing that should be used between control1 and control2 in a layout.
#define QT_BEGIN_NAMESPACE
This macro expands to.
qreal m_defaultSpacing[2]
The QStyleOption class stores the parameters used by QStyle functions.
void initFrom(const QWidget *w)
void setDefaultSpacing(Qt::Orientation o, qreal spacing)
QStyleOption m_styleOption
The QGraphicsLayoutItem class can be inherited to allow your custom items to be managed by layouts...
qreal perItemSpacing(QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation) const
#define Q_DECLARE_PUBLIC(Class)
qreal defaultSpacing(Qt::Orientation o) const
int toInt(bool *ok=0, int base=10) const
Returns the byte array converted to an int using base base, which is 10 by default and must be betwee...
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI...
The QGraphicsLayout class provides the base class for all layouts in Graphics View.
#define Q_AUTOTEST_EXPORT
Q_CORE_EXPORT QTextStream & left(QTextStream &s)