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
qlayout.cpp File Reference

(ef8e548cf1adf8032c030df04e69988f238c77fb)

#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, QLayoutItem::invalidate(), QLayout::layout(), removeWidgetRecursively(), 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: