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

(89fc58127d449cc2995879ff334567141e9c1d58)

#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 int pick (bool vertical, const QSize &size)
 
static int perp (bool vertical, const QSize &size)
 
QDebug operator<< (QDebug dbg, const QDockWidget *dockWidget)
 

Function Documentation

◆ hasFeature() [1/2]

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

Definition at line 54 of file qdockwidget.cpp.

◆ 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:

◆ 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:

◆ operator<<()

QDebug operator<< ( QDebug dbg,
const QDockWidget * dockWidget )

Definition at line 1825 of file qdockwidget.cpp.

◆ perp()

◆ pick()

◆ qt_mainwindow_layout()

QMainWindowLayout * qt_mainwindow_layout ( const QMainWindow * window)
extern

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::isTabbed(), 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 )
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 5992 of file qwidget.cpp.