|
Krita Source Code Documentation
|
A custom title bar for dock widgets. More...
#include <KoDockWidgetTitleBar.h>
Inheritance diagram for KoDockWidgetTitleBar:Public Slots | |
| void | setLocked (bool locked) |
Public Member Functions | |
| void | dockWidgetTitleChanged (const QString &title) |
| void | featuresChanged (QDockWidget::DockWidgetFeatures features) |
| KoDockWidgetTitleBar (QDockWidget *dockWidget) | |
| Private (KoDockWidgetTitleBar *thePublic) | |
| void | toggleFloating () |
| void | topLevelChanged (bool topLevel) |
| void | updateButtonSizes () |
| void | updateIcons () |
| void | updateIcons () |
| ~KoDockWidgetTitleBar () override | |
Public Attributes | |
| QAbstractButton * | closeButton {nullptr} |
| QDockWidget::DockWidgetFeatures | features |
| QAbstractButton * | floatButton {nullptr} |
| QIcon | floatIcon |
| QAbstractButton * | lockButton {nullptr} |
| bool | locked {false} |
| QIcon | lockIcon |
| QIcon | removeIcon |
| KoDockWidgetTitleBar * | thePublic {nullptr} |
| KSqueezedTextLabel * | titleLabel {nullptr} |
Protected Member Functions | |
| void | hideEvent (QHideEvent *event) override |
| void | paintEvent (QPaintEvent *event) override |
| reimplemented from QWidget | |
| void | resizeEvent (QResizeEvent *event) override |
| reimplemented from QWidget | |
| void | showEvent (QShowEvent *event) override |
| QSize | sizeHint () const override |
Private Attributes | |
| Private *const | d |
Private Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Additional Inherited Members | |
Private Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
A custom title bar for dock widgets.
Allow customization such as hidden text.
Definition at line 19 of file KoDockWidgetTitleBar.h.
|
explicit |
Definition at line 36 of file KoDockWidgetTitleBar.cpp.
References d, dockWidgetTitleChanged(), featuresChanged(), kisIcon, setLocked(), SPACING, toggleFloating(), and topLevelChanged().
|
override |
| void KoDockWidgetTitleBar::dockWidgetTitleChanged | ( | const QString & | title | ) |
| void KoDockWidgetTitleBar::featuresChanged | ( | QDockWidget::DockWidgetFeatures | features | ) |
|
overrideprotected |
On Qt6 QDockWidget will read the size hint of the titlebar before it is actually made visible, so we should force it to recalcualate, when visibility (and hence size-hint) is changed
Definition at line 249 of file KoDockWidgetTitleBar.cpp.
References d.
|
overrideprotected |
reimplemented from QWidget
Definition at line 94 of file KoDockWidgetTitleBar.cpp.
References d, hasFeature(), and p.
|
inline |
Definition at line 29 of file KoDockWidgetTitleBar_p.h.
|
overrideprotected |
reimplemented from QWidget
Definition at line 129 of file KoDockWidgetTitleBar.cpp.
References d.
|
slot |
Definition at line 140 of file KoDockWidgetTitleBar.cpp.
|
overrideprotected |
On Qt6 QDockWidget will read the size hint of the titlebar before it is actually made visible, so we should force it to recalcualate, when visibility (and hence size-hint) is changed
Definition at line 264 of file KoDockWidgetTitleBar.cpp.
References d.
|
overrideprotected |
On Qt6 QDockWidget reserves space for the titlebar purely on its size hint, ignoring its visiblity, so we should account for that in the size hint itself
Definition at line 280 of file KoDockWidgetTitleBar.cpp.
| void KoDockWidgetTitleBar::toggleFloating | ( | ) |
| void KoDockWidgetTitleBar::topLevelChanged | ( | bool | topLevel | ) |
| void KoDockWidgetTitleBar::updateButtonSizes | ( | ) |
| void KoDockWidgetTitleBar::updateIcons | ( | ) |
Definition at line 166 of file KoDockWidgetTitleBar.cpp.
References d.
| void KoDockWidgetTitleBar::updateIcons | ( | ) |
| QAbstractButton* KoDockWidgetTitleBar::closeButton {nullptr} |
Definition at line 37 of file KoDockWidgetTitleBar_p.h.
|
private |
Definition at line 45 of file KoDockWidgetTitleBar.h.
| QDockWidget::DockWidgetFeatures KoDockWidgetTitleBar::features |
Definition at line 42 of file KoDockWidgetTitleBar_p.h.
| QAbstractButton* KoDockWidgetTitleBar::floatButton {nullptr} |
Definition at line 38 of file KoDockWidgetTitleBar_p.h.
| QIcon KoDockWidgetTitleBar::floatIcon |
Definition at line 36 of file KoDockWidgetTitleBar_p.h.
| QAbstractButton* KoDockWidgetTitleBar::lockButton {nullptr} |
Definition at line 39 of file KoDockWidgetTitleBar_p.h.
| bool KoDockWidgetTitleBar::locked {false} |
Definition at line 41 of file KoDockWidgetTitleBar_p.h.
| QIcon KoDockWidgetTitleBar::lockIcon |
Definition at line 36 of file KoDockWidgetTitleBar_p.h.
| QIcon KoDockWidgetTitleBar::removeIcon |
Definition at line 36 of file KoDockWidgetTitleBar_p.h.
| KoDockWidgetTitleBar* KoDockWidgetTitleBar::thePublic {nullptr} |
Definition at line 35 of file KoDockWidgetTitleBar_p.h.
| KSqueezedTextLabel* KoDockWidgetTitleBar::titleLabel {nullptr} |
Definition at line 40 of file KoDockWidgetTitleBar_p.h.