Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qlayout.cpp File Reference
#include "qlayout.h"
#include "qapplication.h"
#include "qlayoutengine_p.h"
#include "qevent.h"
#include "qstyle.h"
#include "qvariant.h"
#include "qwidget_p.h"
#include "qlayout_p.h"
#include "moc_qlayout.cpp"
+ Include dependency graph for qlayout.cpp:

Go to the source code of this file.

Functions

static QT_BEGIN_NAMESPACE int menuBarHeightForWidth (QWidget *menubar, int w)
 
static bool removeWidgetRecursively (QLayoutItem *li, QObject *w)
 

Function Documentation

◆ menuBarHeightForWidth()

static QT_BEGIN_NAMESPACE int menuBarHeightForWidth ( QWidget menubar,
int  w 
)
static

Definition at line 25 of file qlayout.cpp.

References QSize::height(), QWidget::heightForWidth(), QWidget::isHidden(), QWidget::isWindow(), QWidget::maximumSize, QWidget::minimumWidth, qBound(), qMax(), qSmartMinSize(), and QWidget::sizeHint.

Referenced by QLayoutPrivate::doResize(), QLayout::totalHeightForWidth(), QLayout::totalMaximumSize(), QLayout::totalMinimumHeightForWidth(), QLayout::totalMinimumSize(), and QLayout::totalSizeHint().

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

◆ removeWidgetRecursively()

static bool removeWidgetRecursively ( QLayoutItem li,
QObject w 
)
static

Definition at line 476 of file qlayout.cpp.

References child, i, QLayout::invalidate(), QLayout::itemAt(), QLayoutItem::layout(), removeWidgetRecursively(), QLayout::takeAt(), and QLayoutItem::widget().

Referenced by QLayout::addChildWidget(), removeWidgetRecursively(), and QLayout::widgetEvent().

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