![]() |
Qt 6.x
The Qt SDK
|
#include <qtoolbar_p.h>
Inheritance diagram for QToolBarPrivate:
Collaboration diagram for QToolBarPrivate:Classes | |
| struct | DragState |
Additional Inherited Members | |
Public Types inherited from QWidgetPrivate | |
| enum | DrawWidgetFlag { DrawAsRoot = 0x01 , DrawPaintOnScreen = 0x02 , DrawRecursive = 0x04 , DrawInvisible = 0x08 , DontSubtractOpaqueChildren = 0x10 , DontDrawOpaqueChildren = 0x20 , DontDrawNativeChildren = 0x40 , DontSetCompositionMode = 0x80 , UseEffectRegionBounds = 0x100 } |
| enum | Direction { DirectionNorth = 0x01 , DirectionEast = 0x10 , DirectionSouth = 0x02 , DirectionWest = 0x20 } |
| enum class | WindowHandleMode { Direct , Closest , TopLevel } |
| enum | CloseMode { CloseNoEvent , CloseWithEvent , CloseWithSpontaneousEvent } |
Public Types inherited from QObjectPrivate | |
| typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
| using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Static Public Member Functions inherited from QWidgetPrivate | |
| static QWidgetPrivate * | get (QWidget *w) |
| static const QWidgetPrivate * | get (const QWidget *w) |
| static void | checkRestoredGeometry (const QRect &availableGeometry, QRect *restoredGeometry, int frameHeight) |
| static void | adjustFlags (Qt::WindowFlags &flags, QWidget *w=nullptr) |
| static QWidget * | parentGraphicsView (const QWidget *widget) |
| static QRect | screenGeometry (const QWidget *widget) |
| static QRect | availableScreenGeometry (const QWidget *widget) |
| static QScreen * | screen (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
| static QRect | screenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
| static QRect | availableScreenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
| static void | sendComposeStatus (QWidget *w, bool end) |
| static void | setWidgetParentHelper (QObject *widgetAsObject, QObject *newParent) |
Static Public Member Functions inherited from QObjectPrivate | |
| static bool | removeConnection (Connection *c) |
| static QObjectPrivate * | get (QObject *o) |
| static const QObjectPrivate * | get (const QObject *o) |
| template<typename Func1 , typename Func2 > | |
| static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
| template<typename Func1 , typename Func2 > | |
| static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
| static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
| static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
| static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Static Public Attributes inherited from QWidgetPrivate | |
| static QWidgetMapper * | mapper = nullptr |
| static QWidgetSet * | allWidgets = nullptr |
| static int | instanceCounter = 0 |
| static int | maxInstances = 0 |
Definition at line 31 of file qtoolbar_p.h.
|
inline |
Definition at line 36 of file qtoolbar_p.h.
| void QToolBarPrivate::_q_toggleView | ( | bool | b | ) |
Definition at line 77 of file qtoolbar.cpp.
Referenced by init().
Here is the caller graph for this function:Definition at line 88 of file qtoolbar.cpp.
References explicitIconSize.
| void QToolBarPrivate::_q_updateToolButtonStyle | ( | Qt::ToolButtonStyle | style | ) |
Definition at line 98 of file qtoolbar.cpp.
References explicitToolButtonStyle.
| void QToolBarPrivate::actionTriggered | ( | ) |
| void QToolBarPrivate::endDrag | ( | ) |
Definition at line 204 of file qtoolbar.cpp.
References QToolBarPrivate::DragState::dragging, layout, Q_ASSERT, qt_mainwindow_layout(), setWindowState(), state, and QToolBarPrivate::DragState::widgetItem.
Referenced by mouseReleaseEvent(), and startDrag().
Here is the call graph for this function:
Here is the caller graph for this function:| void QToolBarPrivate::init | ( | ) |
Definition at line 56 of file qtoolbar.cpp.
References _q_toggleView(), QPalette::Button, QObject::connect(), e, QSizePolicy::Fixed, iconSize, layout, QStyle::pixelMetric(), QStyle::PM_ToolBarIconSize, QSizePolicy::Preferred, QAction::setCheckable(), QStyle::SH_ToolBar_Movable, SIGNAL, SLOT, toggleViewAction, QToolBarLayout::updateMarginAndSpacing(), Qt::WA_Hover, and Qt::WA_X11NetWmWindowTypeToolBar.
Here is the call graph for this function:Definition at line 143 of file qtoolbar.cpp.
References QToolBarPrivate::DragState::dragging, layout, QToolBarPrivate::DragState::moving, QObjectData::parent, pos, QToolBarPrivate::DragState::pressPos, Q_ASSERT, qt_mainwindow_layout(), state, QToolBarPrivate::DragState::widgetItem, win, QPoint::x(), and QPoint::y().
Referenced by mousePressEvent().
Here is the call graph for this function:
Here is the caller graph for this function:| bool QToolBarPrivate::mouseMoveEvent | ( | QMouseEvent * | e | ) |
Definition at line 287 of file qtoolbar.cpp.
References QToolBarPrivate::DragState::dragging, QHighDpi::fromNativePixels(), layout, QToolBarPrivate::DragState::moving, orientation, QObjectData::parent, pos, QToolBarPrivate::DragState::pressPos, Q_ASSERT, qt_mainwindow_layout(), startDrag(), QApplication::startDragDistance, state, Qt::Vertical, QToolBarPrivate::DragState::widgetItem, QWidget::width, win, QWidget::window(), QPoint::x(), and QPoint::y().
Here is the call graph for this function:| bool QToolBarPrivate::mousePressEvent | ( | QMouseEvent * | e | ) |
Definition at line 231 of file qtoolbar.cpp.
References QWidget::childAt(), initDrag(), layout, Qt::LeftButton, QToolBarLayout::movable(), opt, QObjectData::parent, QStyle::SE_ToolBarHandle, and Qt::TopToolBarArea.
Here is the call graph for this function:| bool QToolBarPrivate::mouseReleaseEvent | ( | QMouseEvent * | e | ) |
Definition at line 265 of file qtoolbar.cpp.
References endDrag(), and state.
Here is the call graph for this function:Definition at line 374 of file qtoolbar.cpp.
References setWindowState().
Here is the call graph for this function:| void QToolBarPrivate::setWindowState | ( | bool | floating, |
| bool | unplug = false, |
||
| const QRect & | rect = QRect() |
||
| ) |
Definition at line 122 of file qtoolbar.cpp.
References QToolBarLayout::checkUsePopupMenu(), emit, layout, rect, unplug(), and updateWindowFlags().
Referenced by endDrag(), plug(), and unplug().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 167 of file qtoolbar.cpp.
References QToolBarPrivate::DragState::dragging, endDrag(), Qt::IgnoreAction, layout, QToolBarPrivate::DragState::moving, QObjectData::parent, QToolBarPrivate::DragState::pressPos, Q_ASSERT, qt_mainwindow_layout(), state, QToolBarPrivate::DragState::widgetItem, and win.
Referenced by mouseMoveEvent().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 365 of file qtoolbar.cpp.
References layout, QRect::moveTopLeft(), QToolBarLayout::setExpanded(), and setWindowState().
Referenced by setWindowState(), and updateWindowFlags().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 107 of file qtoolbar.cpp.
References Qt::FramelessWindowHint, Qt::Tool, unplug(), Qt::Widget, and Qt::X11BypassWindowManagerHint.
Referenced by setWindowState().
Here is the call graph for this function:
Here is the caller graph for this function:| Qt::ToolBarAreas QToolBarPrivate::allowedAreas |
Definition at line 56 of file qtoolbar_p.h.
| bool QToolBarPrivate::explicitIconSize |
Definition at line 52 of file qtoolbar_p.h.
Referenced by _q_updateIconSize().
| bool QToolBarPrivate::explicitToolButtonStyle |
Definition at line 53 of file qtoolbar_p.h.
Referenced by _q_updateToolButtonStyle().
| bool QToolBarPrivate::floatable |
Definition at line 55 of file qtoolbar_p.h.
| QSize QToolBarPrivate::iconSize |
Definition at line 59 of file qtoolbar_p.h.
Referenced by init().
| QToolBarLayout* QToolBarPrivate::layout |
Definition at line 63 of file qtoolbar_p.h.
Referenced by endDrag(), init(), initDrag(), mouseMoveEvent(), mousePressEvent(), setWindowState(), startDrag(), and unplug().
| bool QToolBarPrivate::movable |
Definition at line 54 of file qtoolbar_p.h.
| Qt::Orientation QToolBarPrivate::orientation |
Definition at line 57 of file qtoolbar_p.h.
Referenced by mouseMoveEvent().
| DragState* QToolBarPrivate::state |
Definition at line 71 of file qtoolbar_p.h.
Referenced by endDrag(), initDrag(), mouseMoveEvent(), mouseReleaseEvent(), and startDrag().
| QAction* QToolBarPrivate::toggleViewAction |
Definition at line 61 of file qtoolbar_p.h.
Referenced by init().
| Qt::ToolButtonStyle QToolBarPrivate::toolButtonStyle |
Definition at line 58 of file qtoolbar_p.h.
| QBasicTimer QToolBarPrivate::waitForPopupTimer |
Definition at line 91 of file qtoolbar_p.h.