Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 ()
 
- 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 ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
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
 
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 constraint
 
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 70 of file qgridlayout.cpp.

Constructor & Destructor Documentation

◆ QGridLayoutPrivate()

QGridLayoutPrivate::QGridLayoutPrivate ( )

Definition at line 303 of file qgridlayout.cpp.

References setDirty().

+ Here is the call graph for this function:

Member Function Documentation

◆ add() [1/2]

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

Definition at line 518 of file qgridlayout.cpp.

References QList< T >::append(), expand(), and setDirty().

Referenced by add().

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

◆ add() [2/2]

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

Definition at line 528 of file qgridlayout.cpp.

References add(), QList< T >::append(), expand(), Q_UNLIKELY, qMax(), qWarning, and setDirty().

+ Here is the call graph for this function:

◆ cellRect()

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

Definition at line 946 of file qgridlayout.cpp.

References QList< T >::at(), QLayoutStruct::pos, and QLayoutStruct::size.

+ Here is the call graph for this function:

◆ colSpacing()

int QGridLayoutPrivate::colSpacing ( int c) const
inline

Definition at line 100 of file qgridlayout.cpp.

References QList< T >::at().

+ Here is the call graph for this function:

◆ colStretch()

int QGridLayoutPrivate::colStretch ( int c) const
inline

Definition at line 94 of file qgridlayout.cpp.

References QList< T >::at().

+ Here is the call graph for this function:

◆ count()

int QGridLayoutPrivate::count ( ) const
inline

Definition at line 112 of file qgridlayout.cpp.

References QList< T >::size().

+ Here is the call graph for this function:

◆ deleteAll()

void QGridLayoutPrivate::deleteAll ( )

Definition at line 333 of file qgridlayout.cpp.

References QList< T >::isEmpty(), and QList< T >::takeFirst().

+ Here is the call graph for this function:

◆ distribute()

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

Definition at line 895 of file qgridlayout.cpp.

References QList< T >::at(), QRect::bottom(), c2, i, QObjectData::parent, QLayoutStruct::pos, qGeomCalc(), r2, QLayoutPrivate::rect, QRect::right(), QList< T >::size(), and QLayoutStruct::size.

+ Here is the call graph for this function:

◆ expand()

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

Definition at line 87 of file qgridlayout.cpp.

References qMax().

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

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

◆ expandingDirections()

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

Definition at line 419 of file qgridlayout.cpp.

References QList< T >::at(), QLayoutStruct::expansive, Qt::Horizontal, ret, and Qt::Vertical.

+ Here is the call graph for this function:

◆ getItemPosition()

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

Definition at line 150 of file qgridlayout.cpp.

References QList< T >::at(), and QList< T >::size().

+ Here is the call graph for this function:

◆ getNextPos()

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

Definition at line 111 of file qgridlayout.cpp.

◆ hasHeightForWidth()

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

Definition at line 340 of file qgridlayout.cpp.

◆ heightForWidth()

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

Definition at line 374 of file qgridlayout.cpp.

References qGeomCalc().

Referenced by QGridLayout::heightForWidth(), and minimumHeightForWidth().

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

◆ horReversed()

bool QGridLayoutPrivate::horReversed ( ) const
inline

Definition at line 103 of file qgridlayout.cpp.

◆ isDirty()

bool QGridLayoutPrivate::isDirty ( ) const
inline

Definition at line 106 of file qgridlayout.cpp.

◆ itemAt()

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

Definition at line 115 of file qgridlayout.cpp.

References QList< T >::at(), QGridBox::item(), and QList< T >::size().

+ Here is the call graph for this function:

◆ maximumSize()

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

Definition at line 445 of file qgridlayout.cpp.

References QLayoutStruct::maximumSize.

◆ minimumHeightForWidth()

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

Definition at line 390 of file qgridlayout.cpp.

References heightForWidth(), and void.

Referenced by QGridLayout::minimumHeightForWidth().

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

◆ minimumSize()

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

Definition at line 450 of file qgridlayout.cpp.

References QLayoutStruct::minimumSize.

◆ numCols()

int QGridLayoutPrivate::numCols ( ) const
inline

Definition at line 86 of file qgridlayout.cpp.

◆ numRows()

int QGridLayoutPrivate::numRows ( ) const
inline

Definition at line 85 of file qgridlayout.cpp.

◆ replaceAt()

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

Reimplemented from QLayoutPrivate.

Definition at line 137 of file qgridlayout.cpp.

References item, and QList< T >::value().

+ Here is the call graph for this function:

◆ rowSpacing()

int QGridLayoutPrivate::rowSpacing ( int r) const
inline

Definition at line 99 of file qgridlayout.cpp.

References QList< T >::at().

+ Here is the call graph for this function:

◆ rowStretch()

int QGridLayoutPrivate::rowStretch ( int r) const
inline

Definition at line 93 of file qgridlayout.cpp.

References QList< T >::at().

+ Here is the call graph for this function:

◆ setColStretch()

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

Definition at line 91 of file qgridlayout.cpp.

References expand(), and setDirty().

+ Here is the call graph for this function:

◆ setColumnMinimumWidth()

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

Definition at line 97 of file qgridlayout.cpp.

References expand(), and setDirty().

+ Here is the call graph for this function:

◆ setDirty()

void QGridLayoutPrivate::setDirty ( )
inline

Definition at line 105 of file qgridlayout.cpp.

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

+ Here is the caller graph for this function:

◆ setReversed()

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

Definition at line 102 of file qgridlayout.cpp.

◆ setRowMinimumHeight()

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

Definition at line 95 of file qgridlayout.cpp.

References expand(), and setDirty().

+ Here is the call graph for this function:

◆ setRowStretch()

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

Definition at line 89 of file qgridlayout.cpp.

References expand(), and setDirty().

+ Here is the call graph for this function:

◆ sizeHint()

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

Definition at line 440 of file qgridlayout.cpp.

References QLayoutStruct::sizeHint.

◆ takeAt()

QLayoutItem * QGridLayoutPrivate::takeAt ( int index)
inline

Definition at line 121 of file qgridlayout.cpp.

References item, QList< T >::size(), and QList< T >::takeAt().

+ Here is the call graph for this function:

◆ verReversed()

bool QGridLayoutPrivate::verReversed ( ) const
inline

Definition at line 104 of file qgridlayout.cpp.


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