Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qmdisubwindow.cpp File Reference

(87806f5cad6e4ce75a899598c15c126995682562)

#include "qmdisubwindow_p.h"
#include <QApplication>
#include <QStylePainter>
#include <QVBoxLayout>
#include <QMouseEvent>
#include <QScrollBar>
#include <QDebug>
#include <QMdiArea>
#include <QScopedValueRollback>
#include <QProxyStyle>
#include "moc_qmdisubwindow.cpp"
#include "qmdisubwindow.moc"
Include dependency graph for qmdisubwindow.cpp:

Go to the source code of this file.

Classes

class  QMdi::ControlLabel
class  QMdi::ControllerWidget

Namespaces

namespace  QMdi

Functions

static bool isMacStyle (QStyle *style)
static int getMoveDeltaComponent (uint cflags, uint moveFlag, uint resizeFlag, int delta, int maxDelta, int minDelta)
static int getResizeDeltaComponent (uint cflags, uint resizeFlag, uint resizeReverseFlag, int delta)
static bool isChildOfQMdiSubWindow (const QWidget *child)
static bool isChildOfTabbedQMdiArea (const QMdiSubWindow *child)
template<typename T>
static ControlElement< T > * ptr (QWidget *widget)
static bool isHoverControl (QStyle::SubControl control)
QString qt_setWindowTitle_helperHelper (const QString &, const QWidget *)
 Returns a modified window title with the [*] place holder replaced according to the rules described in QWidget::setWindowTitle.

Variables

static const QStyle::SubControl SubControls []
static const int NumSubControls = sizeof(SubControls) / sizeof(SubControls[0])
static const Qt::WindowFlags CustomizeWindowFlags
static const int BoundaryMargin = 5

Function Documentation

◆ getMoveDeltaComponent()

int getMoveDeltaComponent ( uint cflags,
uint moveFlag,
uint resizeFlag,
int delta,
int maxDelta,
int minDelta )
inlinestatic

Definition at line 181 of file qmdisubwindow.cpp.

◆ getResizeDeltaComponent()

int getResizeDeltaComponent ( uint cflags,
uint resizeFlag,
uint resizeReverseFlag,
int delta )
inlinestatic

Definition at line 192 of file qmdisubwindow.cpp.

◆ isChildOfQMdiSubWindow()

bool isChildOfQMdiSubWindow ( const QWidget * child)
inlinestatic

Definition at line 203 of file qmdisubwindow.cpp.

◆ isChildOfTabbedQMdiArea()

bool isChildOfTabbedQMdiArea ( const QMdiSubWindow * child)
inlinestatic

Definition at line 215 of file qmdisubwindow.cpp.

◆ isHoverControl()

bool isHoverControl ( QStyle::SubControl control)
inlinestatic

Definition at line 285 of file qmdisubwindow.cpp.

◆ isMacStyle()

bool isMacStyle ( QStyle * style)
inlinestatic

Definition at line 174 of file qmdisubwindow.cpp.

◆ ptr()

template<typename T>
ControlElement< T > * ptr ( QWidget * widget)
inlinestatic

Definition at line 226 of file qmdisubwindow.cpp.

◆ qt_setWindowTitle_helperHelper()

QString qt_setWindowTitle_helperHelper ( const QString & title,
const QWidget * widget )
extern

Returns a modified window title with the [*] place holder replaced according to the rules described in QWidget::setWindowTitle.

This function assumes that "[*]" can be quoted by another "[*]", so it will replace two place holders by one and a single last one by either "*" or nothing depending on the modified flag.

Definition at line 6051 of file qwidget.cpp.

Referenced by tabTextFor().

Here is the caller graph for this function:

Variable Documentation

◆ BoundaryMargin

const int BoundaryMargin = 5
static

Definition at line 172 of file qmdisubwindow.cpp.

◆ CustomizeWindowFlags

const Qt::WindowFlags CustomizeWindowFlags
static

◆ NumSubControls

const int NumSubControls = sizeof(SubControls) / sizeof(SubControls[0])
static

Definition at line 160 of file qmdisubwindow.cpp.

◆ SubControls