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

(2c96f517714eb67a9af821141a90eed68b8714ed)

#include "QtWidgets/qapplication.h"
#include "QtWidgets/qwidget.h"
#include "QtWidgets/qstyle.h"
#include "QtCore/qvariant.h"
#include "qdockarealayout_p.h"
#include "qdockwidget.h"
#include "qmainwindow.h"
#include "qwidgetanimator_p.h"
#include "qmainwindowlayout_p.h"
#include "qmenu_p.h"
#include "qdockwidget_p.h"
#include <private/qlayoutengine_p.h>
#include <qpainter.h>
#include <qstyleoption.h>
+ Include dependency graph for qdockarealayout.cpp:

Go to the source code of this file.

Enumerations

enum  { StateFlagVisible = 1 , StateFlagFloating = 2 }
 

Functions

QT_BEGIN_NAMESPACE Q_LOGGING_CATEGORY (lcQpaDockWidgets, "qt.widgets.dockwidgets")
 
QMainWindowLayoutqt_mainwindow_layout (const QMainWindow *window)
 
QDebug operator<< (QDebug dbg, const QDockAreaLayoutItem *item)
 
QDebug operator<< (QDebug dbg, const QDockAreaLayoutItem &item)
 
static int realMinSize (const QDockAreaLayoutInfo &info)
 
static int realMaxSize (const QDockAreaLayoutInfo &info)
 
static QInternal::DockPosition dockPosHelper (const QRect &rect, const QPoint &_pos, Qt::Orientation o, bool nestingEnabled, QDockAreaLayoutInfo::TabMode tabMode)
 
static int shrink (QLayoutStruct &ls, int delta)
 
static int grow (QLayoutStruct &ls, int delta)
 
static int separatorMoveHelper (QList< QLayoutStruct > &list, int index, int delta, int sep)
 
static QRect dockedGeometry (QWidget *widget)
 
static void paintSep (QPainter *p, QWidget *w, const QRect &r, Qt::Orientation o, bool mouse_over)
 
static Qt::DockWidgetArea toDockWidgetArea (QInternal::DockPosition pos)
 
static int qMax (int i1, int i2, int i3)
 

Variables

static const int zero = 0
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
StateFlagVisible 
StateFlagFloating 

Definition at line 32 of file qdockarealayout.cpp.

Function Documentation

◆ dockedGeometry()

static QRect dockedGeometry ( QWidget * widget)
static

Definition at line 1119 of file qdockarealayout.cpp.

References QRect::adjust(), QWidget::geometry, layout, QWidget::layout(), and widget.

Referenced by QDockAreaLayoutInfo::insertGap().

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

◆ dockPosHelper()

static QInternal::DockPosition dockPosHelper ( const QRect & rect,
const QPoint & _pos,
Qt::Orientation o,
bool nestingEnabled,
QDockAreaLayoutInfo::TabMode tabMode )
static

Definition at line 646 of file qdockarealayout.cpp.

References QInternal::BottomDock, QInternal::DockCount, QDockAreaLayoutInfo::ForceTabs, Qt::Horizontal, QInternal::LeftDock, QDockAreaLayoutInfo::NoTabs, o, pos, rect, QInternal::RightDock, QInternal::TopDock, and QPoint::x().

Referenced by QDockAreaLayoutInfo::gapIndex().

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

◆ grow()

static int grow ( QLayoutStruct & ls,
int delta )
inlinestatic

Definition at line 848 of file qdockarealayout.cpp.

References qMin().

Referenced by QV4::PropertyHash::addEntry(), QV4::IdentifierTable::addEntry(), QV4::PropertyHash::detach(), and separatorMoveHelper().

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

◆ operator<<() [1/2]

QDebug operator<< ( QDebug dbg,
const QDockAreaLayoutItem & item )

Definition at line 182 of file qdockarealayout.cpp.

◆ operator<<() [2/2]

QDebug operator<< ( QDebug dbg,
const QDockAreaLayoutItem * item )

Definition at line 175 of file qdockarealayout.cpp.

◆ paintSep()

static void paintSep ( QPainter * p,
QWidget * w,
const QRect & r,
Qt::Orientation o,
bool mouse_over )
static

Definition at line 1595 of file qdockarealayout.cpp.

References Qt::Horizontal, o, opt, QStyleOption::palette, QStyle::PE_IndicatorDockWidgetResizeHandle, QStyleOption::rect, QStyleOption::state, QStyle::State_Enabled, QStyle::State_Horizontal, QStyle::State_MouseOver, and QStyle::State_None.

Referenced by QDockAreaLayoutInfo::paintSeparators(), and QDockAreaLayout::paintSeparators().

+ Here is the caller graph for this function:

◆ Q_LOGGING_CATEGORY()

QT_BEGIN_NAMESPACE Q_LOGGING_CATEGORY ( lcQpaDockWidgets ,
"qt.widgets.dockwidgets"  )

◆ qMax()

static int qMax ( int i1,
int i2,
int i3 )
inlinestatic

Definition at line 2687 of file qdockarealayout.cpp.

References qMax().

Referenced by qMax(), and shrink().

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

◆ qt_mainwindow_layout()

QMainWindowLayout * qt_mainwindow_layout ( const QMainWindow * window)
extern

Definition at line 67 of file qmainwindow.cpp.

References QMainWindowPrivate::mainWindowLayout().

Referenced by QDockAreaLayout::apply(), QToolBarAreaLayout::apply(), QMainWindowLayoutState::apply(), QToolBarPrivate::endDrag(), QDockWidgetPrivate::endDrag(), QToolBarPrivate::initDrag(), QToolBar::initStyleOption(), QDockAreaLayoutInfo::mainWindowLayout(), QToolBarPrivate::mouseMoveEvent(), QMainWindowLayoutState::restoreState(), QToolBarLayout::setExpanded(), and QToolBarPrivate::startDrag().

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

◆ realMaxSize()

static int realMaxSize ( const QDockAreaLayoutInfo & info)
static

Definition at line 511 of file qdockarealayout.cpp.

References QGraphicsItem::flags(), i, info, item, QDockAreaLayoutItem::KeepSize, pick(), and QWIDGETSIZE_MAX.

Referenced by QDockAreaLayoutInfo::fitItems().

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

◆ realMinSize()

static int realMinSize ( const QDockAreaLayoutInfo & info)
static

Definition at line 486 of file qdockarealayout.cpp.

References QGraphicsItem::flags(), i, info, item, QDockAreaLayoutItem::KeepSize, and pick().

Referenced by QDockAreaLayoutInfo::fitItems().

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

◆ separatorMoveHelper()

static int separatorMoveHelper ( QList< QLayoutStruct > & list,
int index,
int delta,
int sep )
static

Definition at line 857 of file qdockarealayout.cpp.

References QList< T >::at(), d, grow(), i, list, pos, QLAYOUTSIZE_MAX, sep, shrink(), and QList< T >::size().

Referenced by QDockAreaLayout::separatorMove(), and QDockAreaLayoutInfo::separatorMove().

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

◆ shrink()

static int shrink ( QLayoutStruct & ls,
int delta )
inlinestatic

Definition at line 839 of file qdockarealayout.cpp.

References qMax().

Referenced by separatorMoveHelper().

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

◆ toDockWidgetArea()

static Qt::DockWidgetArea toDockWidgetArea ( QInternal::DockPosition pos)
static

Definition at line 1892 of file qdockarealayout.cpp.

References QInternal::BottomDock, Qt::BottomDockWidgetArea, QInternal::LeftDock, Qt::LeftDockWidgetArea, Qt::NoDockWidgetArea, pos, QInternal::RightDock, Qt::RightDockWidgetArea, QInternal::TopDock, and Qt::TopDockWidgetArea.

Referenced by QDockAreaLayoutInfo::restoreState().

+ Here is the caller graph for this function:

Variable Documentation

◆ zero

const int zero = 0
static

Definition at line 219 of file qdockarealayout.cpp.