![]() |
Qt 6.x
The Qt SDK
|
#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"
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. | |
QMainWindowLayout * | qt_mainwindow_layout (const QMainWindow *window) |
static const QMainWindow * | mainwindow_from_dock (const QDockWidget *dock) |
static QMainWindowLayout * | qt_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) |
|
inlinestatic |
Definition at line 54 of file qdockwidget.cpp.
References QDockWidget::features.
|
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().
|
inlinestatic |
Definition at line 131 of file qdockwidget.cpp.
References QProxyStyle::baseStyle(), and QObject::inherits().
|
static |
Definition at line 36 of file qdockwidget.cpp.
References QWidget::parentWidget(), and window().
Referenced by QDockWidgetPrivate::endDrag(), and qt_mainwindow_layout_from_dock().
|
inlinestatic |
Definition at line 453 of file qdockwidget.cpp.
Referenced by QToolBarLayout::checkUsePopupMenu(), QToolBarLayout::expandedSize(), QDockAreaLayoutInfo::hasFixedSize(), QDockAreaLayoutItem::hasFixedSize(), QDockAreaLayoutInfo::itemRect(), QToolBarLayout::layoutActions(), QDockAreaLayoutInfo::maximumSize(), QDockAreaLayoutInfo::minimumSize(), QToolBarAreaLayoutLine::minimumSize(), QToolBarAreaLayoutInfo::minimumSize(), QRasterizer::rasterizeLine(), QToolBarLayout::setGeometry(), QDockAreaLayoutInfo::sizeHint(), QToolBarAreaLayoutLine::sizeHint(), QToolBarAreaLayoutInfo::sizeHint(), QTessellator::tessellateRect(), and QDockWidgetLayout::titleHeight().
|
inlinestatic |
Definition at line 448 of file qdockwidget.cpp.
Referenced by QToolBarLayout::expandedSize(), QToolBarAreaLayoutItem::extendSize(), QDockAreaLayoutInfo::findSeparator(), QDockAreaLayoutInfo::fitItems(), QToolBarAreaLayoutLine::fitLayout(), QDockAreaLayoutInfo::gapIndex(), QToolBarAreaLayoutInfo::gapIndex(), QDockAreaLayoutInfo::insertGap(), QToolBarAreaLayoutInfo::insertGap(), QToolBarLayout::layoutActions(), QDockAreaLayoutInfo::maximumSize(), QDockAreaLayoutInfo::minimumSize(), QToolBarAreaLayoutLine::minimumSize(), QToolBarAreaLayoutInfo::minimumSize(), QDockWidgetLayout::minimumTitleWidth(), QToolBarAreaLayoutInfo::moveToolBar(), realMaxSize(), realMinSize(), QToolBarAreaLayoutItem::resize(), QDockAreaLayout::resizeDocks(), QDockAreaLayoutInfo::saveState(), QDockAreaLayoutInfo::separatorMove(), QDockAreaLayout::separatorMove(), QDockAreaLayoutInfo::separatorMove(), QToolBarLayout::setGeometry(), QDockAreaLayoutInfo::sizeHint(), QToolBarAreaLayoutLine::sizeHint(), QToolBarAreaLayoutInfo::sizeHint(), and QToolBarAreaLayout::unplug().
QMainWindowLayout * qt_mainwindow_layout | ( | const QMainWindow * | window | ) |
Definition at line 67 of file qmainwindow.cpp.
Referenced by qt_mainwindow_layout_from_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().
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.