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

(c94bcecb22bce80101de79f4b3c0aff143ff34b5)

#include "qmdiarea_p.h"
#include <QApplication>
#include <QStyle>
#include <QChildEvent>
#include <QResizeEvent>
#include <QScrollBar>
#include <QtAlgorithms>
#include <QPainter>
#include <QFontMetrics>
#include <QStyleOption>
#include <QDebug>
#include <qmath.h>
#include <private/qlayoutengine_p.h>
#include <algorithm>
#include "moc_qmdiarea.cpp"
+ Include dependency graph for qmdiarea.cpp:

Go to the source code of this file.

Functions

static bool sanityCheck (const QMdiSubWindow *const child, const char *where)
 
static bool sanityCheck (const QList< QWidget * > &widgets, const int index, const char *where)
 
static void setIndex (int *index, int candidate, int min, int max, bool isIncreasing)
 
static bool useScrollBar (const QRect &childrenRect, const QSize &maxViewportSize, Qt::Orientation orientation)
 
static QMdiAreamdiAreaParent (QWidget *widget)
 
static QString tabTextFor (QMdiSubWindow *subWindow)
 

Function Documentation

◆ mdiAreaParent()

static QMdiArea * mdiAreaParent ( QWidget * widget)
inlinestatic

Definition at line 208 of file qmdiarea.cpp.

References area(), QWidget::parentWidget(), and widget.

Referenced by QMdiArea::eventFilter().

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

◆ sanityCheck() [1/2]

static bool sanityCheck ( const QList< QWidget * > & widgets,
const int index,
const char * where )
static

Definition at line 158 of file qmdiarea.cpp.

References QList< T >::at(), error, Q_ASSERT_X, Q_UNLIKELY, qWarning, QList< T >::size(), and widgets.

+ Here is the call graph for this function:

◆ sanityCheck() [2/2]

◆ setIndex()

static void setIndex ( int * index,
int candidate,
int min,
int max,
bool isIncreasing )
static

Definition at line 175 of file qmdiarea.cpp.

References Q_ASSERT, qMax(), and qMin().

Referenced by QMdiAreaPrivate::nextVisibleSubWindow().

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

◆ tabTextFor()

static QString tabTextFor ( QMdiSubWindow * subWindow)
inlinestatic

Definition at line 226 of file qmdiarea.cpp.

References QString::isEmpty(), qt_setWindowTitle_helperHelper(), QString::replace(), and title.

Referenced by QMdiAreaPrivate::appendChild(), QMdiArea::eventFilter(), and QMdiAreaPrivate::setViewMode().

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

◆ useScrollBar()

static bool useScrollBar ( const QRect & childrenRect,
const QSize & maxViewportSize,
Qt::Orientation orientation )
inlinestatic

Definition at line 194 of file qmdiarea.cpp.

References QRect::bottom(), QRect::height(), Qt::Horizontal, QRect::left(), QRect::right(), QRect::top(), and QRect::width().

Referenced by QMdiAreaPrivate::updateScrollBars().

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