#include "qlayout.h"
#include "qapplication.h"
#include "qlayoutengine_p.h"
#include "qmenubar.h"
#include "qtoolbar.h"
#include "qsizegrip.h"
#include "qevent.h"
#include "qstyle.h"
#include "qvariant.h"
#include "qwidget_p.h"
#include "qlayout_p.h"
#include "qformlayout.h"
Go to the source code of this file.
◆ layoutDebug()
static bool layoutDebug |
( |
| ) |
|
|
static |
Definition at line 995 of file qlayout.cpp.
Referenced by QLayout::addChildWidget(), and QLayoutPrivate::reparentChildWidgets().
997 static int checked_env = -1;
998 if(checked_env == -1)
Q_CORE_EXPORT QByteArray qgetenv(const char *varName)
int toInt(bool *ok=0, int base=10) const
Returns the byte array converted to an int using base base, which is 10 by default and must be betwee...
◆ menuBarHeightForWidth()
static int menuBarHeightForWidth |
( |
QWidget * |
menubar, |
|
|
int |
w |
|
) |
| |
|
static |
Definition at line 58 of file qlayout.cpp.
Referenced by QLayoutPrivate::doResize(), QLayout::totalHeightForWidth(), QLayout::totalMaximumSize(), QLayout::totalMinimumSize(), and QLayout::totalSizeHint().
Q_GUI_EXPORT QSize qSmartMinSize(const QSize &sizeHint, const QSize &minSizeHint, const QSize &minSize, const QSize &maxSize, const QSizePolicy &sizePolicy)
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
Q_DECL_CONSTEXPR const T & qBound(const T &min, const T &val, const T &max)
int height() const
Returns the height.
◆ removeWidgetRecursively()
Definition at line 680 of file qlayout.cpp.
Referenced by QLayout::addChildWidget(), and QLayout::widgetEvent().
687 while ((child = lay->
itemAt(i))) {
688 if (child->
widget() == w) {
virtual QLayoutItem * itemAt(int index) const =0
Must be implemented in subclasses to return the layout item at index.
void invalidate()
Reimplemented Function
virtual QLayoutItem * takeAt(int index)=0
Must be implemented in subclasses to remove the layout item at index from the layout, and return the item.
The QLayoutItem class provides an abstract item that a QLayout manipulates.
The QLayout class is the base class of geometry managers.
virtual QLayout * layout()
If this item is a QLayout, it is returned as a QLayout; otherwise 0 is returned.
virtual QWidget * widget()
If this item is a QWidget, it is returned as a QWidget; otherwise 0 is returned.
static bool removeWidgetRecursively(QLayoutItem *li, QWidget *w)