![]() |
Qt 6.x
The Qt SDK
|
#include <qsplitter_p.h>
Inheritance diagram for QSplitterPrivate:
Collaboration diagram for QSplitterPrivate:Additional Inherited Members | |
Public Types inherited from QWidgetPrivate | |
| enum | DrawWidgetFlag { DrawAsRoot = 0x01 , DrawPaintOnScreen = 0x02 , DrawRecursive = 0x04 , DrawInvisible = 0x08 , DontSubtractOpaqueChildren = 0x10 , DontDrawOpaqueChildren = 0x20 , DontDrawNativeChildren = 0x40 , DontSetCompositionMode = 0x80 , UseEffectRegionBounds = 0x100 } |
| enum | Direction { DirectionNorth = 0x01 , DirectionEast = 0x10 , DirectionSouth = 0x02 , DirectionWest = 0x20 } |
| enum class | WindowHandleMode { Direct , Closest , TopLevel } |
| enum | CloseMode { CloseNoEvent , CloseWithEvent , CloseWithSpontaneousEvent } |
Public Types inherited from QObjectPrivate | |
| typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
| using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Static Public Member Functions inherited from QWidgetPrivate | |
| static QWidgetPrivate * | get (QWidget *w) |
| static const QWidgetPrivate * | get (const QWidget *w) |
| static void | checkRestoredGeometry (const QRect &availableGeometry, QRect *restoredGeometry, int frameHeight) |
| static void | adjustFlags (Qt::WindowFlags &flags, QWidget *w=nullptr) |
| static QWidget * | parentGraphicsView (const QWidget *widget) |
| static QRect | screenGeometry (const QWidget *widget) |
| static QRect | availableScreenGeometry (const QWidget *widget) |
| static QScreen * | screen (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
| static QRect | screenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
| static QRect | availableScreenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
| static void | sendComposeStatus (QWidget *w, bool end) |
| static void | setWidgetParentHelper (QObject *widgetAsObject, QObject *newParent) |
Static Public Member Functions inherited from QObjectPrivate | |
| static bool | removeConnection (Connection *c) |
| static QObjectPrivate * | get (QObject *o) |
| static const QObjectPrivate * | get (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) |
Static Public Attributes inherited from QWidgetPrivate | |
| static QWidgetMapper * | mapper = nullptr |
| static QWidgetSet * | allWidgets = nullptr |
| static int | instanceCounter = 0 |
| static int | maxInstances = 0 |
Definition at line 45 of file qsplitter_p.h.
|
inline |
Definition at line 49 of file qsplitter_p.h.
| QSplitterPrivate::~QSplitterPrivate | ( | ) |
Definition at line 33 of file qsplitter.cpp.
| void QSplitterPrivate::addContribution | ( | int | index, |
| int * | min, | ||
| int * | max, | ||
| bool | mayCollapse | ||
| ) | const |
Definition at line 541 of file qsplitter.cpp.
References QList< T >::at(), list, orient, pick(), qSmartMaxSize(), and qSmartMinSize().
Referenced by getRange().
Here is the call graph for this function:
Here is the caller graph for this function:| int QSplitterPrivate::adjustPos | ( | int | pos, |
| int | index, | ||
| int * | farMin, | ||
| int * | min, | ||
| int * | max, | ||
| int * | farMax | ||
| ) | const |
Definition at line 630 of file qsplitter.cpp.
References getRange(), pos, and qMin().
Here is the call graph for this function:
|
inline |
Definition at line 88 of file qsplitter_p.h.
References QList< T >::at(), collapsible(), list, and QList< T >::size().
Here is the call graph for this function:| bool QSplitterPrivate::collapsible | ( | QSplitterLayoutStruct * | s | ) | const |
Definition at line 661 of file qsplitter.cpp.
References childrenCollapsible, and Default.
Referenced by collapsible(), doMove(), findWidgetJustBeforeOrJustAfter(), and setSizes_helper().
Here is the caller graph for this function:| void QSplitterPrivate::doMove | ( | bool | backwards, |
| int | pos, | ||
| int | index, | ||
| int | delta, | ||
| bool | mayCollapse, | ||
| int * | positions, | ||
| int * | widths | ||
| ) |
Definition at line 757 of file qsplitter.cpp.
References QList< T >::at(), collapsible(), doMove(), list, nextId, orient, pick(), positions, qDebug, qMax(), qMin(), qSmartMaxSize(), qSmartMinSize(), and QList< T >::size().
Referenced by doMove().
Here is the call graph for this function:
Here is the caller graph for this function:| void QSplitterPrivate::doResize | ( | ) |
Definition at line 450 of file qsplitter.cpp.
References QList< T >::at(), Qt::Horizontal, i, j, list, orient, pick(), pos, qDebug, qGeomCalc(), qMax(), qSmartMaxSize(), qSmartMinSize(), setGeo(), QList< T >::size(), QWidget::sizePolicy, and QSplitterLayoutStruct::widget.
Referenced by recalc(), and setSizes_helper().
Here is the call graph for this function:
Here is the caller graph for this function:| QSplitterLayoutStruct * QSplitterPrivate::findWidget | ( | QWidget * | w | ) | const |
Definition at line 793 of file qsplitter.cpp.
References QList< T >::at(), i, list, QList< T >::size(), and QSplitterLayoutStruct::widget.
Here is the call graph for this function:| int QSplitterPrivate::findWidgetJustBeforeOrJustAfter | ( | int | index, |
| int | delta, | ||
| int & | collapsibleSize | ||
| ) | const |
Definition at line 556 of file qsplitter.cpp.
References QList< T >::at(), collapsible(), list, pick(), qSmartMinSize(), QList< T >::size(), and QSplitterLayoutStruct::widget.
Referenced by getRange().
Here is the call graph for this function:
Here is the caller graph for this function:| void QSplitterPrivate::getRange | ( | int | index, |
| int * | farMin, | ||
| int * | min, | ||
| int * | max, | ||
| int * | farMax | ||
| ) | const |
Definition at line 577 of file qsplitter.cpp.
References addContribution(), findWidgetJustBeforeOrJustAfter(), i, list, pick(), qMax(), qMin(), and QList< T >::size().
Referenced by adjustPos().
Here is the call graph for this function:
Here is the caller graph for this function:| void QSplitterPrivate::init | ( | ) |
Definition at line 351 of file qsplitter.cpp.
References QSizePolicy::Expanding, orient, QSizePolicy::Preferred, sp, Qt::Vertical, and Qt::WA_WState_OwnSizePolicy.
| QSplitterLayoutStruct * QSplitterPrivate::insertWidget | ( | int | index, |
| QWidget * | w | ||
| ) |
Definition at line 825 of file qsplitter.cpp.
References QList< T >::at(), QSplitterLayoutStruct::handle, i, QList< T >::insert(), QWidget::isVisible(), list, QList< T >::move(), QObject::setObjectName(), QWidget::show(), QList< T >::size(), and QSplitterLayoutStruct::widget.
Referenced by insertWidget_helper().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 806 of file qsplitter.cpp.
References blockChildAdd, insertWidget(), QWidget::parentWidget(), recalc(), QWidget::setParent(), shouldShowWidget(), show(), QWidget::show(), and widget.
Here is the call graph for this function:
|
inline |
Definition at line 70 of file qsplitter_p.h.
References Qt::Horizontal, orient, and pos.
Referenced by addContribution(), doMove(), doResize(), findWidgetJustBeforeOrJustAfter(), getRange(), recalc(), setGeo(), setSizes_helper(), and storeSizes().
Here is the caller graph for this function:
|
inline |
Definition at line 72 of file qsplitter_p.h.
References Qt::Horizontal, and orient.
Definition at line 361 of file qsplitter.cpp.
References QList< T >::at(), QSplitterLayoutStruct::collapsed, doResize(), fi, firstShow, QSplitterLayoutStruct::getHandleSize(), Qt::Horizontal, i, QWidget::isHidden(), j, list, orient, QObjectData::parent, pick(), qMax(), qMin(), qSmartMaxSize(), qSmartMinSize(), QWIDGETSIZE_MAX, QList< T >::size(), trans(), QWidgetPrivate::update(), and QSplitterLayoutStruct::widget.
Referenced by insertWidget_helper(), and updateHandles().
Here is the call graph for this function:
Here is the caller graph for this function:| void QSplitterPrivate::setGeo | ( | QSplitterLayoutStruct * | s, |
| int | pos, | ||
| int | size, | ||
| bool | allowCollapse | ||
| ) |
Definition at line 715 of file qsplitter.cpp.
References QSplitterLayoutStruct::collapsed, contents, QSplitterLayoutStruct::handle, QSize::height(), Qt::Horizontal, QWidget::isHidden(), orient, pick(), qSmartMinSize(), QSplitterLayoutStruct::rect, QSplitterLayoutStruct::widget, and QSize::width().
Referenced by doResize().
Here is the call graph for this function:
Here is the caller graph for this function:| void QSplitterPrivate::setSizes_helper | ( | const QList< int > & | sizes, |
| bool | clampNegativeSize = false |
||
| ) |
Definition at line 676 of file qsplitter.cpp.
References QList< T >::at(), QSplitterLayoutStruct::collapsed, collapsible(), doResize(), i, j, list, pick(), qSmartMinSize(), and QList< T >::size().
Here is the call graph for this function:| bool QSplitterPrivate::shouldShowWidget | ( | const QWidget * | w | ) | const |
Definition at line 709 of file qsplitter.cpp.
References Qt::WA_WState_ExplicitShowHide.
Referenced by insertWidget_helper().
Here is the caller graph for this function:| void QSplitterPrivate::storeSizes | ( | ) |
Definition at line 533 of file qsplitter.cpp.
References QList< T >::at(), i, list, pick(), QSplitterLayoutStruct::rect, QList< T >::size(), QRect::size(), and QSplitterLayoutStruct::sizer.
Here is the call graph for this function:
|
inline |
Definition at line 75 of file qsplitter_p.h.
References orient, pos, and Qt::Vertical.
Referenced by recalc().
Here is the caller graph for this function:
|
inline |
Definition at line 77 of file qsplitter_p.h.
References orient, and Qt::Vertical.
| void QSplitterPrivate::updateHandles | ( | ) |
Definition at line 670 of file qsplitter.cpp.
References recalc().
Here is the call graph for this function:| bool QSplitterPrivate::blockChildAdd |
Definition at line 67 of file qsplitter_p.h.
Referenced by insertWidget_helper().
| bool QSplitterPrivate::childrenCollapsible |
Definition at line 64 of file qsplitter_p.h.
Referenced by collapsible().
| bool QSplitterPrivate::compatMode |
Definition at line 65 of file qsplitter_p.h.
| bool QSplitterPrivate::firstShow |
Definition at line 63 of file qsplitter_p.h.
Referenced by recalc().
| int QSplitterPrivate::handleWidth |
Definition at line 66 of file qsplitter_p.h.
|
mutable |
Definition at line 60 of file qsplitter_p.h.
Referenced by addContribution(), collapsible(), doMove(), doResize(), findWidget(), findWidgetJustBeforeOrJustAfter(), getRange(), insertWidget(), recalc(), setSizes_helper(), and storeSizes().
| bool QSplitterPrivate::opaque |
Definition at line 62 of file qsplitter_p.h.
| bool QSplitterPrivate::opaqueResizeSet |
Definition at line 68 of file qsplitter_p.h.
| Qt::Orientation QSplitterPrivate::orient |
Definition at line 61 of file qsplitter_p.h.
Referenced by addContribution(), doMove(), doResize(), init(), pick(), pick(), recalc(), setGeo(), trans(), and trans().