Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QGridLayoutPrivate Class Reference
Inheritance diagram for QGridLayoutPrivate:
Collaboration diagram for QGridLayoutPrivate:

Public Member Functions

 QGridLayoutPrivate ()
void add (QGridBox *, int row, int col)
void add (QGridBox *, int row1, int row2, int col1, int col2)
QSize sizeHint (int hSpacing, int vSpacing) const
QSize minimumSize (int hSpacing, int vSpacing) const
QSize maximumSize (int hSpacing, int vSpacing) const
Qt::Orientations expandingDirections (int hSpacing, int vSpacing) const
void distribute (QRect rect, int hSpacing, int vSpacing)
int numRows () const
int numCols () const
void expand (int rows, int cols)
void setRowStretch (int r, int s)
void setColStretch (int c, int s)
int rowStretch (int r) const
int colStretch (int c) const
void setRowMinimumHeight (int r, int s)
void setColumnMinimumWidth (int c, int s)
int rowSpacing (int r) const
int colSpacing (int c) const
void setReversed (bool r, bool c)
bool horReversed () const
bool verReversed () const
void setDirty ()
bool isDirty () const
bool hasHeightForWidth (int hSpacing, int vSpacing)
int heightForWidth (int width, int hSpacing, int vSpacing)
int minimumHeightForWidth (int width, int hSpacing, int vSpacing)
void getNextPos (int &row, int &col)
int count () const
QRect cellRect (int row, int col) const
QLayoutItemitemAt (int index) const
QLayoutItemtakeAt (int index)
QLayoutItemreplaceAt (int index, QLayoutItem *newitem) override
void getItemPosition (int index, int *row, int *column, int *rowSpan, int *columnSpan) const
void deleteAll ()
 QGridLayoutPrivate ()
void add (QGridBox *, int row, int col)
void add (QGridBox *, int row1, int row2, int col1, int col2)
QSize sizeHint (int hSpacing, int vSpacing) const
QSize minimumSize (int hSpacing, int vSpacing) const
QSize maximumSize (int hSpacing, int vSpacing) const
Qt::Orientations expandingDirections (int hSpacing, int vSpacing) const
void distribute (QRect rect, int hSpacing, int vSpacing)
int numRows () const
int numCols () const
void expand (int rows, int cols)
void setRowStretch (int r, int s)
void setColStretch (int c, int s)
int rowStretch (int r) const
int colStretch (int c) const
void setRowMinimumHeight (int r, int s)
void setColumnMinimumWidth (int c, int s)
int rowSpacing (int r) const
int colSpacing (int c) const
void setReversed (bool r, bool c)
bool horReversed () const
bool verReversed () const
void setDirty ()
bool isDirty () const
bool hasHeightForWidth (int hSpacing, int vSpacing)
int heightForWidth (int width, int hSpacing, int vSpacing)
int minimumHeightForWidth (int width, int hSpacing, int vSpacing)
void getNextPos (int &row, int &col)
int count () const
QRect cellRect (int row, int col) const
QLayoutItemitemAt (int index) const
QLayoutItemtakeAt (int index)
QLayoutItemreplaceAt (int index, QLayoutItem *newitem) override
void getItemPosition (int index, int *row, int *column, int *rowSpan, int *columnSpan) const
void deleteAll ()
Public Member Functions inherited from QLayoutPrivate
 QLayoutPrivate ()
void getMargin (int *result, int userMargin, QStyle::PixelMetric pm) const
void doResize ()
void reparentChildWidgets (QWidget *mw)
bool checkWidget (QWidget *widget) const
 Returns true if the widget can be added to the layout; otherwise returns false.
bool checkLayout (QLayout *otherLayout) const
 Returns true if the otherLayout can be added to the layout; otherwise returns false.
Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
void setObjectNameWithoutBindings (const QString &name)
 QObjectPrivate (decltype(QObjectPrivateVersion) version=QObjectPrivateVersion)
virtual ~QObjectPrivate ()
void deleteChildren ()
void clearBindingStorage ()
void setParent_helper (QObject *)
void moveToThread_helper ()
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
QObjectList receiverList (const char *signal) const
void ensureConnectionData ()
void addConnection (int signal, Connection *c)
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
bool maybeSignalConnected (uint signalIndex) const
bool isDeclarativeSignalConnected (uint signalIdx) const
void connectNotify (const QMetaMethod &signal)
void disconnectNotify (const QMetaMethod &signal)
void reinitBindingStorageAfterThreadMove ()
virtual std::string flagsForDumping () const
virtual void writeToDebugStream (QDebug &) const
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
Public Member Functions inherited from QObjectData
 QObjectData ()=default
virtual ~QObjectData ()=0
const QMetaObjectdynamicMetaObject () const

Additional Inherited Members

Public Types inherited from QLayoutPrivate
typedef QWidgetItem *(* QWidgetItemFactoryMethod) (const QLayout *layout, QWidget *widget)
typedef QSpacerItem *(* QSpacerItemFactoryMethod) (const QLayout *layout, int w, int h, QSizePolicy::Policy hPolicy, QSizePolicy::Policy)
Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
Static Public Member Functions inherited from QLayoutPrivate
static QWidgetItemcreateWidgetItem (const QLayout *layout, QWidget *widget)
static QSpacerItemcreateSpacerItem (const QLayout *layout, int w, int h, QSizePolicy::Policy hPolicy=QSizePolicy::Minimum, QSizePolicy::Policy vPolicy=QSizePolicy::Minimum)
Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
static QObjectPrivateget (QObject *o)
static const QObjectPrivateget (const QObject *o)
template<typename Func1, typename Func2>
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
template<typename Func1, typename Func2>
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
static bool disconnect (const QObject *sender, int signal_index, void **slot)
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)
Public Attributes inherited from QLayoutPrivate
int insideSpacing
int userLeftMargin
int userTopMargin
int userRightMargin
int userBottomMargin
uint topLevel: 1
uint enabled: 1
uint activated: 1
uint autoNewChild: 1
QLayout::SizeConstraint horizontalConstraint
QLayout::SizeConstraint verticalConstraint
QRect rect
QWidgetmenubar
Public Attributes inherited from QObjectPrivate
ExtraDataextraData
QAtomicPointer< QThreadDatathreadData
QAtomicPointer< ConnectionDataconnections
union { 
   QObject *   currentChildBeingDeleted 
   QAbstractDeclarativeData *   declarativeData 
}; 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
Public Attributes inherited from QObjectData
QObjectq_ptr
QObjectparent
QObjectList children
uint isWidget: 1
uint blockSig: 1
uint wasDeleted: 1
uint isDeletingChildren: 1
uint sendChildEvents: 1
uint receiveChildEvents: 1
uint isWindow: 1
uint deleteLaterCalled: 1
uint isQuickItem: 1
uint willBeWidget: 1
uint wasWidget: 1
uint receiveParentEvents: 1
uint unused: 20
QAtomicInt postedEvents
QDynamicMetaObjectDatametaObject
QBindingStorage bindingStorage
Static Public Attributes inherited from QLayoutPrivate
static QWidgetItemFactoryMethod widgetItemFactoryMethod = nullptr
static QSpacerItemFactoryMethod spacerItemFactoryMethod = nullptr

Detailed Description

Definition at line 71 of file qgridlayout.cpp.

Constructor & Destructor Documentation

◆ QGridLayoutPrivate() [1/2]

QGridLayoutPrivate::QGridLayoutPrivate ( )

Definition at line 304 of file qgridlayout.cpp.

References setDirty().

Here is the call graph for this function:

◆ QGridLayoutPrivate() [2/2]

QGridLayoutPrivate::QGridLayoutPrivate ( )

Member Function Documentation

◆ add() [1/4]

void QGridLayoutPrivate::add ( QGridBox * box,
int row,
int col )

Definition at line 519 of file qgridlayout.cpp.

References expand(), and setDirty().

Referenced by add().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ add() [2/4]

void QGridLayoutPrivate::add ( QGridBox * ,
int row,
int col )

◆ add() [3/4]

void QGridLayoutPrivate::add ( QGridBox * box,
int row1,
int row2,
int col1,
int col2 )

Definition at line 529 of file qgridlayout.cpp.

References add(), expand(), and setDirty().

Here is the call graph for this function:

◆ add() [4/4]

void QGridLayoutPrivate::add ( QGridBox * ,
int row1,
int row2,
int col1,
int col2 )

◆ cellRect() [1/2]

QRect QGridLayoutPrivate::cellRect ( int row,
int col ) const

Definition at line 947 of file qgridlayout.cpp.

◆ cellRect() [2/2]

QRect QGridLayoutPrivate::cellRect ( int row,
int col ) const

◆ colSpacing() [1/2]

int QGridLayoutPrivate::colSpacing ( int c) const
inline

Definition at line 101 of file qgridlayout.cpp.

◆ colSpacing() [2/2]

int QGridLayoutPrivate::colSpacing ( int c) const
inline

Definition at line 101 of file qgridlayout.cpp.

◆ colStretch() [1/2]

int QGridLayoutPrivate::colStretch ( int c) const
inline

Definition at line 95 of file qgridlayout.cpp.

◆ colStretch() [2/2]

int QGridLayoutPrivate::colStretch ( int c) const
inline

Definition at line 95 of file qgridlayout.cpp.

◆ count() [1/2]

int QGridLayoutPrivate::count ( ) const
inline

Definition at line 113 of file qgridlayout.cpp.

◆ count() [2/2]

int QGridLayoutPrivate::count ( ) const
inline

Definition at line 113 of file qgridlayout.cpp.

◆ deleteAll() [1/2]

void QGridLayoutPrivate::deleteAll ( )

Definition at line 334 of file qgridlayout.cpp.

◆ deleteAll() [2/2]

void QGridLayoutPrivate::deleteAll ( )

◆ distribute() [1/2]

void QGridLayoutPrivate::distribute ( QRect rect,
int hSpacing,
int vSpacing )

Definition at line 896 of file qgridlayout.cpp.

◆ distribute() [2/2]

void QGridLayoutPrivate::distribute ( QRect rect,
int hSpacing,
int vSpacing )

◆ expand() [1/2]

void QGridLayoutPrivate::expand ( int rows,
int cols )
inline

Definition at line 88 of file qgridlayout.cpp.

Referenced by add(), add(), setColStretch(), setColumnMinimumWidth(), setRowMinimumHeight(), and setRowStretch().

Here is the caller graph for this function:

◆ expand() [2/2]

void QGridLayoutPrivate::expand ( int rows,
int cols )
inline

Definition at line 88 of file qgridlayout.cpp.

◆ expandingDirections() [1/2]

Qt::Orientations QGridLayoutPrivate::expandingDirections ( int hSpacing,
int vSpacing ) const

Definition at line 420 of file qgridlayout.cpp.

◆ expandingDirections() [2/2]

Qt::Orientations QGridLayoutPrivate::expandingDirections ( int hSpacing,
int vSpacing ) const

◆ getItemPosition() [1/2]

void QGridLayoutPrivate::getItemPosition ( int index,
int * row,
int * column,
int * rowSpan,
int * columnSpan ) const
inline

Definition at line 151 of file qgridlayout.cpp.

◆ getItemPosition() [2/2]

void QGridLayoutPrivate::getItemPosition ( int index,
int * row,
int * column,
int * rowSpan,
int * columnSpan ) const
inline

Definition at line 151 of file qgridlayout.cpp.

◆ getNextPos() [1/2]

void QGridLayoutPrivate::getNextPos ( int & row,
int & col )
inline

Definition at line 112 of file qgridlayout.cpp.

◆ getNextPos() [2/2]

void QGridLayoutPrivate::getNextPos ( int & row,
int & col )
inline

Definition at line 112 of file qgridlayout.cpp.

◆ hasHeightForWidth() [1/2]

bool QGridLayoutPrivate::hasHeightForWidth ( int hSpacing,
int vSpacing )

Definition at line 341 of file qgridlayout.cpp.

◆ hasHeightForWidth() [2/2]

bool QGridLayoutPrivate::hasHeightForWidth ( int hSpacing,
int vSpacing )

◆ heightForWidth() [1/2]

int QGridLayoutPrivate::heightForWidth ( int width,
int hSpacing,
int vSpacing )

Definition at line 375 of file qgridlayout.cpp.

Referenced by minimumHeightForWidth().

Here is the caller graph for this function:

◆ heightForWidth() [2/2]

int QGridLayoutPrivate::heightForWidth ( int width,
int hSpacing,
int vSpacing )

◆ horReversed() [1/2]

bool QGridLayoutPrivate::horReversed ( ) const
inline

Definition at line 104 of file qgridlayout.cpp.

◆ horReversed() [2/2]

bool QGridLayoutPrivate::horReversed ( ) const
inline

Definition at line 104 of file qgridlayout.cpp.

◆ isDirty() [1/2]

bool QGridLayoutPrivate::isDirty ( ) const
inline

Definition at line 107 of file qgridlayout.cpp.

◆ isDirty() [2/2]

bool QGridLayoutPrivate::isDirty ( ) const
inline

Definition at line 107 of file qgridlayout.cpp.

◆ itemAt() [1/2]

QLayoutItem * QGridLayoutPrivate::itemAt ( int index) const
inline

Definition at line 116 of file qgridlayout.cpp.

◆ itemAt() [2/2]

QLayoutItem * QGridLayoutPrivate::itemAt ( int index) const
inline

Definition at line 116 of file qgridlayout.cpp.

◆ maximumSize() [1/2]

QSize QGridLayoutPrivate::maximumSize ( int hSpacing,
int vSpacing ) const

Definition at line 446 of file qgridlayout.cpp.

◆ maximumSize() [2/2]

QSize QGridLayoutPrivate::maximumSize ( int hSpacing,
int vSpacing ) const

◆ minimumHeightForWidth() [1/2]

int QGridLayoutPrivate::minimumHeightForWidth ( int width,
int hSpacing,
int vSpacing )

Definition at line 391 of file qgridlayout.cpp.

References heightForWidth().

Here is the call graph for this function:

◆ minimumHeightForWidth() [2/2]

int QGridLayoutPrivate::minimumHeightForWidth ( int width,
int hSpacing,
int vSpacing )

◆ minimumSize() [1/2]

QSize QGridLayoutPrivate::minimumSize ( int hSpacing,
int vSpacing ) const

Definition at line 451 of file qgridlayout.cpp.

◆ minimumSize() [2/2]

QSize QGridLayoutPrivate::minimumSize ( int hSpacing,
int vSpacing ) const

◆ numCols() [1/2]

int QGridLayoutPrivate::numCols ( ) const
inline

Definition at line 87 of file qgridlayout.cpp.

◆ numCols() [2/2]

int QGridLayoutPrivate::numCols ( ) const
inline

Definition at line 87 of file qgridlayout.cpp.

◆ numRows() [1/2]

int QGridLayoutPrivate::numRows ( ) const
inline

Definition at line 86 of file qgridlayout.cpp.

◆ numRows() [2/2]

int QGridLayoutPrivate::numRows ( ) const
inline

Definition at line 86 of file qgridlayout.cpp.

◆ replaceAt() [1/2]

QLayoutItem * QGridLayoutPrivate::replaceAt ( int index,
QLayoutItem * newitem )
inlineoverridevirtual

Reimplemented from QLayoutPrivate.

Definition at line 138 of file qgridlayout.cpp.

References QGridBox::setItem(), and QGridBox::takeItem().

Here is the call graph for this function:

◆ replaceAt() [2/2]

QLayoutItem * QGridLayoutPrivate::replaceAt ( int index,
QLayoutItem * newitem )
inlineoverridevirtual

Reimplemented from QLayoutPrivate.

Definition at line 138 of file qgridlayout.cpp.

◆ rowSpacing() [1/2]

int QGridLayoutPrivate::rowSpacing ( int r) const
inline

Definition at line 100 of file qgridlayout.cpp.

◆ rowSpacing() [2/2]

int QGridLayoutPrivate::rowSpacing ( int r) const
inline

Definition at line 100 of file qgridlayout.cpp.

◆ rowStretch() [1/2]

int QGridLayoutPrivate::rowStretch ( int r) const
inline

Definition at line 94 of file qgridlayout.cpp.

◆ rowStretch() [2/2]

int QGridLayoutPrivate::rowStretch ( int r) const
inline

Definition at line 94 of file qgridlayout.cpp.

◆ setColStretch() [1/2]

void QGridLayoutPrivate::setColStretch ( int c,
int s )
inline

Definition at line 92 of file qgridlayout.cpp.

References expand(), and setDirty().

Here is the call graph for this function:

◆ setColStretch() [2/2]

void QGridLayoutPrivate::setColStretch ( int c,
int s )
inline

Definition at line 92 of file qgridlayout.cpp.

◆ setColumnMinimumWidth() [1/2]

void QGridLayoutPrivate::setColumnMinimumWidth ( int c,
int s )
inline

Definition at line 98 of file qgridlayout.cpp.

References expand(), and setDirty().

Here is the call graph for this function:

◆ setColumnMinimumWidth() [2/2]

void QGridLayoutPrivate::setColumnMinimumWidth ( int c,
int s )
inline

Definition at line 98 of file qgridlayout.cpp.

◆ setDirty() [1/2]

void QGridLayoutPrivate::setDirty ( )
inline

Definition at line 106 of file qgridlayout.cpp.

Referenced by QGridLayoutPrivate(), add(), add(), setColStretch(), setColumnMinimumWidth(), setRowMinimumHeight(), and setRowStretch().

Here is the caller graph for this function:

◆ setDirty() [2/2]

void QGridLayoutPrivate::setDirty ( )
inline

Definition at line 106 of file qgridlayout.cpp.

◆ setReversed() [1/2]

void QGridLayoutPrivate::setReversed ( bool r,
bool c )
inline

Definition at line 103 of file qgridlayout.cpp.

◆ setReversed() [2/2]

void QGridLayoutPrivate::setReversed ( bool r,
bool c )
inline

Definition at line 103 of file qgridlayout.cpp.

◆ setRowMinimumHeight() [1/2]

void QGridLayoutPrivate::setRowMinimumHeight ( int r,
int s )
inline

Definition at line 96 of file qgridlayout.cpp.

References expand(), and setDirty().

Here is the call graph for this function:

◆ setRowMinimumHeight() [2/2]

void QGridLayoutPrivate::setRowMinimumHeight ( int r,
int s )
inline

Definition at line 96 of file qgridlayout.cpp.

◆ setRowStretch() [1/2]

void QGridLayoutPrivate::setRowStretch ( int r,
int s )
inline

Definition at line 90 of file qgridlayout.cpp.

References expand(), and setDirty().

Here is the call graph for this function:

◆ setRowStretch() [2/2]

void QGridLayoutPrivate::setRowStretch ( int r,
int s )
inline

Definition at line 90 of file qgridlayout.cpp.

◆ sizeHint() [1/2]

QSize QGridLayoutPrivate::sizeHint ( int hSpacing,
int vSpacing ) const

Definition at line 441 of file qgridlayout.cpp.

◆ sizeHint() [2/2]

QSize QGridLayoutPrivate::sizeHint ( int hSpacing,
int vSpacing ) const

◆ takeAt() [1/2]

QLayoutItem * QGridLayoutPrivate::takeAt ( int index)
inline

Definition at line 122 of file qgridlayout.cpp.

References QGridBox::takeItem().

Here is the call graph for this function:

◆ takeAt() [2/2]

QLayoutItem * QGridLayoutPrivate::takeAt ( int index)
inline

Definition at line 122 of file qgridlayout.cpp.

◆ verReversed() [1/2]

bool QGridLayoutPrivate::verReversed ( ) const
inline

Definition at line 105 of file qgridlayout.cpp.

◆ verReversed() [2/2]

bool QGridLayoutPrivate::verReversed ( ) const
inline

Definition at line 105 of file qgridlayout.cpp.


The documentation for this class was generated from the following file: