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

(9cc9692d25c19d82433185aaf6cd31ed7f8d0872)

#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()

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

Definition at line 179 of file qmdisubwindow.cpp.

◆ getResizeDeltaComponent()

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

Definition at line 190 of file qmdisubwindow.cpp.

◆ isChildOfQMdiSubWindow()

static bool isChildOfQMdiSubWindow ( const QWidget * child)
inlinestatic

Definition at line 201 of file qmdisubwindow.cpp.

◆ isChildOfTabbedQMdiArea()

static bool isChildOfTabbedQMdiArea ( const QMdiSubWindow * child)
inlinestatic

Definition at line 213 of file qmdisubwindow.cpp.

◆ isHoverControl()

static bool isHoverControl ( QStyle::SubControl control)
inlinestatic

Definition at line 283 of file qmdisubwindow.cpp.

◆ isMacStyle()

static bool isMacStyle ( QStyle * style)
inlinestatic

Definition at line 172 of file qmdisubwindow.cpp.

◆ ptr()

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

Definition at line 224 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 6011 of file qwidget.cpp.

Referenced by tabTextFor().

+ Here is the caller graph for this function:

Variable Documentation

◆ BoundaryMargin

static const int BoundaryMargin = 5
static

Definition at line 170 of file qmdisubwindow.cpp.

◆ CustomizeWindowFlags

static const Qt::WindowFlags CustomizeWindowFlags
static

◆ NumSubControls

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

Definition at line 158 of file qmdisubwindow.cpp.

◆ SubControls