#include "qmdiarea_p.h"
#include <QApplication>
#include <QStyle>
#include <QMacStyle>
#include <QChildEvent>
#include <QResizeEvent>
#include <QScrollBar>
#include <QtAlgorithms>
#include <QMutableListIterator>
#include <QPainter>
#include <QFontMetrics>
#include <QStyleOption>
#include <QDesktopWidget>
#include <QDebug>
#include <qmath.h>
#include <private/qlayoutengine_p.h>
#include "moc_qmdiarea.cpp"
Go to the source code of this file.
|
static QMdiArea * | mdiAreaParent (QWidget *widget) |
|
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 QTabBar::Shape | tabBarShapeFrom (QTabWidget::TabShape shape, QTabWidget::TabPosition position) |
|
static QString | tabTextFor (QMdiSubWindow *subWindow) |
|
static bool | useScrollBar (const QRect &childrenRect, const QSize &maxViewportSize, Qt::Orientation orientation) |
|
◆ mdiAreaParent()
◆ sanityCheck() [1/2]
static bool sanityCheck |
( |
const QMdiSubWindow *const |
child, |
|
|
const char * |
where |
|
) |
| |
|
static |
Definition at line 198 of file qmdiarea.cpp.
Referenced by QMdiAreaPrivate::_q_deactivateAllWindows(), QMdiArea::closeAllSubWindows(), QMdiArea::event(), QMdiAreaPrivate::internalRaise(), QMdiArea::minimumSizeHint(), QMdiAreaPrivate::place(), QMdi::RegularTiler::rearrange(), QMdi::SimpleCascader::rearrange(), QMdi::IconTiler::rearrange(), QMdiAreaPrivate::rearrange(), QMdiArea::removeSubWindow(), QMdiArea::resizeEvent(), QMdiAreaPrivate::scrollBarPolicyChanged(), QMdiArea::setupViewport(), and QMdiArea::sizeHint().
201 const char error[] =
"null pointer";
Q_CORE_EXPORT void qWarning(const char *,...)
#define Q_ASSERT_X(cond, where, what)
◆ sanityCheck() [2/2]
static bool sanityCheck |
( |
const QList< QWidget *> & |
widgets, |
|
|
const int |
index, |
|
|
const char * |
where |
|
) |
| |
|
static |
Definition at line 209 of file qmdiarea.cpp.
211 if (index < 0 || index >= widgets.
size()) {
212 const char error[] =
"index out of range";
218 const char error[] =
"null pointer";
const T & at(int i) const
Returns the item at index position i in the list.
Q_CORE_EXPORT void qWarning(const char *,...)
#define Q_ASSERT_X(cond, where, what)
int size() const
Returns the number of items in the list.
◆ setIndex()
static void setIndex |
( |
int * |
index, |
|
|
int |
candidate, |
|
|
int |
min, |
|
|
int |
max, |
|
|
bool |
isIncreasing |
|
) |
| |
|
static |
◆ tabBarShapeFrom()
◆ tabTextFor()
Definition at line 289 of file qmdiarea.cpp.
Referenced by QMdiAreaPrivate::appendChild(), QMdiArea::eventFilter(), and QMdiAreaPrivate::setViewMode().
QString & replace(int i, int len, QChar after)
static QString tr(const char *sourceText, const char *comment=0, int n=-1)
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
◆ useScrollBar()
Definition at line 245 of file qmdiarea.cpp.
Referenced by QMdiAreaPrivate::updateScrollBars().
249 return childrenRect.
width() > maxViewportSize.
width()
250 || childrenRect.
left() < 0
251 || childrenRect.
right() >= maxViewportSize.
width();
254 || childrenRect.
top() < 0
int left() const
Returns the x-coordinate of the rectangle's left edge.
int width() const
Returns the width of the rectangle.
int height() const
Returns the height of the rectangle.
int bottom() const
Returns the y-coordinate of the rectangle's bottom edge.
int width() const
Returns the width.
int top() const
Returns the y-coordinate of the rectangle's top edge.
int right() const
Returns the x-coordinate of the rectangle's right edge.
int height() const
Returns the height.