4#ifndef QGRAPHICSLAYOUT_P_H
5#define QGRAPHICSLAYOUT_P_H
18#include <QtWidgets/private/qtwidgetsglobal_p.h>
22#include <QtWidgets/qstyle.h>
23#include <QtWidgets/qwidget.h>
24#include <QtWidgets/qstyleoption.h>
34inline bool qt_graphicsLayoutDebug()
36 static int checked_env = -1;
37 if (checked_env == -1)
58 inline void invalidate() { m_valid =
false; m_style =
nullptr; m_widget =
nullptr; }
64 {
return m_style ==
other.m_style && m_widget ==
other.m_widget; }
66 {
return !(*
this ==
other); }
70 m_defaultSpacing[int(
o) - 1] =
spacing;
74 return m_defaultSpacing[int(
o) - 1];
89 qreal m_defaultSpacing[2];
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
The QGraphicsLayoutItem class can be inherited to allow your custom items to be managed by layouts.
The QGraphicsLayout class provides the base class for all layouts in Graphics View.
void setDefaultSpacing(Qt::Orientation o, qreal spacing)
bool operator==(const QLayoutStyleInfo &other) const
bool operator!=(const QLayoutStyleInfo &other) const
qreal perItemSpacing(QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation) const
qreal defaultSpacing(Qt::Orientation o) const
QLayoutStyleInfo(QStyle *style, QWidget *widget)
The QStyleOption class stores the parameters used by QStyle functions.
void initFrom(const QWidget *w)
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI.
virtual int layoutSpacing(QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption *option=nullptr, const QWidget *widget=nullptr) const =0
PixelMetric
This enum describes the various available pixel metrics.
@ PM_LayoutVerticalSpacing
@ PM_LayoutHorizontalSpacing
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option=nullptr, const QWidget *widget=nullptr) const =0
Returns the value of the given pixel metric.
Combined button and popup list for selecting options.
GLdouble GLdouble GLdouble GLdouble top
#define Q_AUTOTEST_EXPORT
#define QT_REQUIRE_CONFIG(feature)
Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) noexcept