Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qdockwidget.cpp File Reference
#include "qdockwidget.h"
#include <qaction.h>
#include <qapplication.h>
#include <qdrawutil.h>
#include <qevent.h>
#include <qfontmetrics.h>
#include <qproxystyle.h>
#include <qwindow.h>
#include <qscreen.h>
#include <qmainwindow.h>
#include <qstylepainter.h>
#include <qtoolbutton.h>
#include <qdebug.h>
#include <private/qwidgetresizehandler_p.h>
#include <private/qstylesheetstyle_p.h>
#include <qpa/qplatformtheme.h>
#include <private/qhighdpiscaling_p.h>
#include "qdockwidget_p.h"
#include "qmainwindowlayout_p.h"
#include "qdockwidget.moc"
#include "moc_qdockwidget.cpp"
#include "moc_qdockwidget_p.cpp"
+ Include dependency graph for qdockwidget.cpp:

Go to the source code of this file.

Classes

class  QDockWidgetTitleButton
 

Functions

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.
 
QMainWindowLayoutqt_mainwindow_layout (const QMainWindow *window)
 
static const QMainWindowmainwindow_from_dock (const QDockWidget *dock)
 
static QMainWindowLayoutqt_mainwindow_layout_from_dock (const QDockWidget *dock)
 
static bool hasFeature (const QDockWidgetPrivate *priv, QDockWidget::DockWidgetFeature feature)
 
static bool hasFeature (const QDockWidget *dockwidget, QDockWidget::DockWidgetFeature feature)
 
static bool isWindowsStyle (const QStyle *style)
 
static int pick (bool vertical, const QSize &size)
 
static int perp (bool vertical, const QSize &size)
 

Function Documentation

◆ hasFeature() [1/2]

static bool hasFeature ( const QDockWidget dockwidget,
QDockWidget::DockWidgetFeature  feature 
)
inlinestatic

Definition at line 54 of file qdockwidget.cpp.

References QDockWidget::features.

◆ hasFeature() [2/2]

static bool hasFeature ( const QDockWidgetPrivate priv,
QDockWidget::DockWidgetFeature  feature 
)
inlinestatic

Definition at line 51 of file qdockwidget.cpp.

References priv().

Referenced by QDockWidgetPrivate::endDrag(), QDockWidget::initStyleOption(), QDockWidgetLayout::minimumTitleWidth(), QDockWidgetPrivate::mouseDoubleClickEvent(), QDockWidgetPrivate::mousePressEvent(), QDockWidgetPrivate::nonClientAreaMouseEvent(), QSqlResult::savePrepare(), QDockWidgetPrivate::setWindowState(), and QDockWidgetPrivate::updateButtons().

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

◆ isWindowsStyle()

static bool isWindowsStyle ( const QStyle style)
inlinestatic

Definition at line 131 of file qdockwidget.cpp.

References QProxyStyle::baseStyle(), and QObject::inherits().

+ Here is the call graph for this function:

◆ mainwindow_from_dock()

static const QMainWindow * mainwindow_from_dock ( const QDockWidget dock)
static

Definition at line 36 of file qdockwidget.cpp.

References QWidget::parentWidget(), and window().

Referenced by QDockWidgetPrivate::endDrag(), and qt_mainwindow_layout_from_dock().

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

◆ perp()

◆ pick()

◆ qt_mainwindow_layout()

QMainWindowLayout * qt_mainwindow_layout ( const QMainWindow window)

Definition at line 67 of file qmainwindow.cpp.

Referenced by qt_mainwindow_layout_from_dock().

+ Here is the caller graph for this function:

◆ qt_mainwindow_layout_from_dock()

static QMainWindowLayout * qt_mainwindow_layout_from_dock ( const QDockWidget dock)
inlinestatic

Definition at line 45 of file qdockwidget.cpp.

References mainwindow_from_dock(), and qt_mainwindow_layout().

Referenced by QDockWidget::changeEvent(), QDockWidget::event(), QDockWidgetPrivate::initDrag(), QDockWidgetPrivate::isAnimating(), QDockWidgetPrivate::mouseMoveEvent(), QDockWidgetPrivate::moveEvent(), QDockWidgetPrivate::setWindowState(), and QDockWidgetPrivate::startDrag().

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

◆ qt_setWindowTitle_helperHelper()

QString qt_setWindowTitle_helperHelper ( const QString title,
const QWidget widget 
)

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 5996 of file qwidget.cpp.