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

(d84d7d36afbb2b0807ceb54e6f01ad00aae5bf39)

#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 178 of file qmdisubwindow.cpp.

References qMax(), and qMin().

Referenced by QMdiSubWindowPrivate::setNewGeometry().

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

◆ getResizeDeltaComponent()

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

Definition at line 189 of file qmdisubwindow.cpp.

Referenced by QMdiSubWindowPrivate::setNewGeometry().

+ Here is the caller graph for this function:

◆ isChildOfQMdiSubWindow()

static bool isChildOfQMdiSubWindow ( const QWidget * child)
inlinestatic

Definition at line 200 of file qmdisubwindow.cpp.

References child, QWidget::parentWidget(), and Q_ASSERT.

Referenced by QMdiSubWindowPrivate::drawTitleBarWhenMaximized().

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

◆ isChildOfTabbedQMdiArea()

static bool isChildOfTabbedQMdiArea ( const QMdiSubWindow * child)
inlinestatic

Definition at line 212 of file qmdisubwindow.cpp.

References child, Q_ASSERT, and QMdiArea::TabbedView.

Referenced by QMdiSubWindowPrivate::drawTitleBarWhenMaximized(), QMdiSubWindow::maximizedButtonsWidget(), and QMdiSubWindow::maximizedSystemMenuIconWidget().

+ Here is the caller graph for this function:

◆ isHoverControl()

static bool isHoverControl ( QStyle::SubControl control)
inlinestatic

Definition at line 282 of file qmdisubwindow.cpp.

References QStyle::SC_None, and QStyle::SC_TitleBarLabel.

Referenced by QMdiSubWindow::mouseMoveEvent().

+ Here is the caller graph for this function:

◆ isMacStyle()

static bool isMacStyle ( QStyle * style)
inlinestatic

Definition at line 171 of file qmdisubwindow.cpp.

References QObject::inherits().

Referenced by QMdiSubWindow::event(), QMdiSubWindowPrivate::getRegion(), QMdiSubWindow::minimumSizeHint(), QMdiSubWindow::mouseMoveEvent(), QMdiSubWindowPrivate::processClickedSubControl(), QMdiSubWindow::showEvent(), and QMdiSubWindowPrivate::updateCursor().

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

◆ ptr()

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

Definition at line 223 of file qmdisubwindow.cpp.

References widget.

Referenced by QSharedPointer< T >::QSharedPointer(), QSharedPointer< T >::QSharedPointer(), QVarLengthArray< T, Prealloc >::QVarLengthArray(), QVarLengthArray< T, Prealloc >::QVarLengthArray(), QFontEngine::Holder::~Holder(), QCborContainerPrivate::addByteDataImpl(), addQQmlMetaTypeInterfaces(), QtLinuxFutex::addr(), QGstPipeline::adopt(), QUtf8BaseTraits::advanceByte(), QUtf8BaseTraits::advanceByte(), QUtf8BaseTraits::advanceByte(), QUtf8BaseTraits::advanceUtf16(), QImage::allGray(), QNetworkInterfaceManager::allInterfaces(), QV4::Scope::alloc(), QV4::Scope::alloc(), QCborContainerPrivate::appendAsciiString(), QUtf8BaseTraits::appendByte(), QUtf8BaseTraits::appendByte(), QUtf8BaseTraits::appendUcs4(), QUtf8BaseTraits::appendUcs4(), QUtf8BaseTraits::appendUtf16(), QUtf8BaseTraits::appendUtf16(), QQmlJSScope::attachedType(), QUtf8BaseTraits::availableBytes(), QUtf8BaseTraits::availableBytes(), QUtf8BaseTraits::availableBytes(), QUtf8BaseTraits::availableUtf16(), QPropertyBindingDataPointer::binding(), QPropertyObserverPointer::binding(), QOCIResultPrivate::bindValue(), bt_get_le16(), CborDevice::callback(), QV4::callDatafromJS(), QQmlNotifierEndpoint::cancelNotify(), QFileSystemEngine::canonicalName(), QtPrivate::QPropertyAdaptorSlotObject::cast(), QtMetaTypePrivate::checkMetaTypeFlagOrPointer(), cleanupPredefinedColorspaces(), compareStringsInUtf8(), q20::construct_at(), QVariant::convert(), convert_generic(), convert_generic_inplace(), convert_generic_inplace_over_rgb64(), convert_generic_over_rgb64(), convertToIpv4(), QtSharedPointer::copyAndSetPointer(), QSharedPointer< T >::create(), QtSharedPointer::ExternalRefCountWithContiguousData< T >::create(), QtSharedPointer::ExternalRefCountWithCustomDeleter< T, Deleter >::create(), QQmlJS::Dom::ScriptElements::ForStatement::createFileLocations(), QQmlJS::Dom::ScriptElements::IfStatement::createFileLocations(), QQmlJS::Dom::ScriptElements::ReturnStatement::createFileLocations(), QQmlJS::Dom::ScriptElements::BinaryExpression::createFileLocations(), QQmlJS::Dom::ScriptElements::VariableDeclarationEntry::createFileLocations(), QQmlJSScope::createQQmlSAElement(), QQmlJSScope::createQQmlSAElement(), customConstructShared(), customConstructSharedImpl(), decodeFsEncString(), QSslConfigurationPrivate::deepCopyDefaultConfiguration(), QTranslatorPrivate::do_load(), QGraphicsScenePrivate::draw(), QPaintEngineEx::drawEllipse(), QPropertyObserverPointer::evaluateBindings(), fallback_fill(), QWindowsFontDatabaseBase::EmbeddedFont::familyName(), QTzTimeZoneCache::fetchEntry(), QPixmapCache::find(), QPixmapCache::find(), findSectionName(), QDBusAbstractInterfacePrivate::finishDisconnectNotify(), QPropertyBindingDataPointer::firstObserver(), QPropertyBindingDataPointer::fixupAfterMove(), QV4::ExecutionEngine::fromData(), futexHigh32(), futexLow32(), futexSemaphoreTryAcquire_loop(), QFontEngine::Holder::get(), q20::detail::to_address_helper< Ptr, typename >::get(), q20::detail::to_address_helper< Ptr, std::void_t< decltype(std::pointer_traits< Ptr >::to_address(std::declval< const Ptr & >())) > >::get(), getAddresses(), getBtData(), getMediaPlayer(), QFontEngine::getTrueTypeGlyphIndex(), QOpenGLExtraFunctions::glGetObjectPtrLabel(), QOpenGLFunctions_4_4_Compatibility::glGetObjectPtrLabel(), QOpenGLFunctions_4_4_Core::glGetObjectPtrLabel(), QOpenGLFunctions_4_5_Compatibility::glGetObjectPtrLabel(), QOpenGLFunctions_4_5_Core::glGetObjectPtrLabel(), QOpenGLExtraFunctions::glObjectPtrLabel(), QOpenGLFunctions_4_4_Compatibility::glObjectPtrLabel(), QOpenGLFunctions_4_4_Core::glObjectPtrLabel(), QOpenGLFunctions_4_5_Compatibility::glObjectPtrLabel(), QOpenGLFunctions_4_5_Core::glObjectPtrLabel(), QOpenGLFunctions::glVertexAttribPointer(), QRingBuffer::indexOf(), interfaceListing(), interfaceNames(), QtSharedPointer::internalSafetyCheckAdd(), QtPrivate::isAscii(), QtPrivate::isAscii(), isAscii_helper(), QtPrivate::isLatin1(), QV4::ExecutionEngine::jsAlloca(), QV4::CompiledData::Unit::jsClassAt(), QOCIResult::lastInsertId(), Argb32OperationsC::load(), QLibraryPrivate::loadPlugin(), Argb32OperationsC::memfill(), Rgba64OperationsBase::memfill(), QPropertyObserverPointer::nextObserver(), nextUtf32Character(), QPropertyObserverPointer::noSelfDependencies(), QPropertyObserverPointer::notify(), QPMCache::object(), QPropertyObserverPointer::observeProperty(), QOverload< Args >::of(), QConstOverload< Args >::of(), QNonConstOverload< Args >::of(), onTimedTextChangedNative(), onTrackInfoChangedNative(), QPropertyObserverPointer::operator bool(), QtSharedPointer::ExternalRefCountData::operator delete(), QQmlPrivate::QQmlElement< T >::operator delete(), QtSharedPointer::ExternalRefCountData::operator new(), QFontEngine::Holder::operator!(), QOverload< Args >::operator()(), QConstOverload< Args >::operator()(), QNonConstOverload< Args >::operator()(), QSharedPointer< T >::operator<<(), operator<<(), QQmlPropertyCache::ConstPtr::operator=(), QQmlPropertyCache::ConstPtr::operator=(), QtPrivate::QTagPreservingPointerToPointer< T, Tag >::operator=(), QQmlAnyBinding::operator=(), QVarLengthArray< T, Prealloc >::operator=(), QtPrivate::QTagPreservingPointerToPointer< T, Tag >::operator=(), QDataStream::operator>>(), QIPAddressUtils::parseIp4(), QIPAddressUtils::parseIp4Internal(), QIPAddressUtils::parseIp6(), QUtf8BaseTraits::peekByte(), QUtf8BaseTraits::peekByte(), QUtf8BaseTraits::peekByte(), QUtf8BaseTraits::peekUtf16(), QFontEngine::processHheaTable(), QFontEngine::processOS2Table(), QPropertyBindingDataPointer::proxyData(), push(), QRingBuffer::putChar(), dtlsbio::q_dgram_ctrl(), qdbus_resolve_me(), qffmpegLogCallback(), qFreeAligned(), qHash(), qHash(), QSharedPointer< T >::qHash(), qIterGet(), qPixmapSerial(), qSharedPointerCast(), qSharedPointerConstCast(), qSharedPointerDynamicCast(), qSharedPointerObjectCast(), qt_is_ascii(), qt_socks5_set_host_address_and_port(), qt_socks5_set_host_name_and_port(), QAbstractSocketPrivate::readFromSocket(), QCborStreamReader::readStringChunk(), QCborStreamReaderPrivate::readStringChunk(), QCborStreamReaderPrivate::readStringChunk_byte(), QCborStreamReaderPrivate::readStringChunk_unicode(), QVLABase< T >::reallocate_impl(), QFontEngine::Holder::release(), QVarLengthArray< KeyValuePair, 8 >::removeIf(), QDeclarativeGeoMap::removeMapItem(), QDeclarativeGeoMap::removeMapItem_real(), QXmlStreamSimpleStack< T >::reserve(), DarwinBluetooth::ObjCScopedPointer< T >::reset(), QPropertyBindingPrivatePtr::reset(), QSharedDataPointer< T >::reset(), QExplicitlySharedDataPointer< T >::reset(), QObjectPrivate::ConnectionData::resizeSignalVector(), QTextStreamPrivate::scan(), QTest::sendKeyEvent(), QDBusContextPrivate::set(), QNetmask::setAddress(), QPropertyObserverPointer::setBindingToNotify(), QPropertyObserverPointer::setBindingToNotify_unsafe(), QPropertyObserverPointer::setChangeHandler(), QPropertyBindingDataPointer::setFirstObserver(), QWindowsNativeFileDialogBase::setNameFilters(), QPropertyBindingDataPointer::setObservers(), QtPrivate::QTagPreservingPointerToPointer< T, Tag >::setPointer(), QStringAlgorithms< StringType >::simplified_helper(), Argb32OperationsC::store(), stringLengthInUtf8(), QFontEngine::Holder::swap(), q20::to_address(), QDBusDemarshaller::toVariantInternal(), QT_BEGIN_NAMESPACE::toZlibPointer(), QColorSpacePrivate::transformationToColorSpace(), QColorSpacePrivate::transformationToXYZ(), QRingBuffer::ungetChar(), QPropertyObserverPointer::unlink(), QPropertyObserverPointer::unlink_fast(), QFSFileEnginePrivate::unmap(), QQmlJS::Dom::ScriptElements::ForStatement::updatePathFromOwner(), QQmlJS::Dom::ScriptElements::IfStatement::updatePathFromOwner(), QQmlJS::Dom::ScriptElements::ReturnStatement::updatePathFromOwner(), QQmlJS::Dom::ScriptElements::BinaryExpression::updatePathFromOwner(), QQmlJS::Dom::ScriptElements::VariableDeclarationEntry::updatePathFromOwner(), uuidToByteArray(), QVariant::view(), and QAbstractSocketPrivate::writeToSocket().

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

References QString::indexOf(), QWidget::isWindowModified(), Q_ASSERT, QStyle::SH_TitleBar_ModifyNotification, QWidget::style(), QStyle::styleHint(), title, and widget.

Referenced by QDockWidget::changeEvent(), QDockWidgetPrivate::init(), QWidgetPrivate::setWindowIconText_helper(), QWidgetPrivate::setWindowTitle_helper(), tabTextFor(), and QMdiSubWindowPrivate::updateInternalWindowTitle().

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

Variable Documentation

◆ BoundaryMargin

const int BoundaryMargin = 5
static

Definition at line 169 of file qmdisubwindow.cpp.

Referenced by QMdiSubWindowPrivate::setNewGeometry().

◆ CustomizeWindowFlags

const Qt::WindowFlags CustomizeWindowFlags
static

◆ NumSubControls

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

◆ SubControls