#include <FloatingWidgetTitleBar.h>
Public Types | |
using | Super = QWidget |
Signals | |
void | closeRequested () |
void | maximizeRequested () |
Public Member Functions | |
CFloatingWidgetTitleBar (CFloatingDockContainer *parent=nullptr) | |
void | enableCloseButton (bool Enable) |
void | setMaximizedIcon (bool maximized) |
void | setTitle (const QString &Text) |
void | updateStyle () |
virtual | ~CFloatingWidgetTitleBar () |
Protected Member Functions | |
QIcon | maximizeIcon () const |
virtual void | mouseDoubleClickEvent (QMouseEvent *event) override |
virtual void | mouseMoveEvent (QMouseEvent *ev) override |
virtual void | mousePressEvent (QMouseEvent *ev) override |
virtual void | mouseReleaseEvent (QMouseEvent *ev) override |
QIcon | normalIcon () const |
void | setMaximizeIcon (const QIcon &Icon) |
void | setNormalIcon (const QIcon &Icon) |
Properties | |
QIcon | maximizeIcon |
QIcon | normalIcon |
Private Attributes | |
FloatingWidgetTitleBarPrivate * | d |
private data (pimpl) More... | |
Titlebar for floating widgets to capture non client are mouse events. Linux does not support NonClieantArea mouse events like QEvent::NonClientAreaMouseButtonPress. Because these events are required for the docking system to work properly, we use our own titlebar here to capture the required mouse events.
Definition at line 49 of file FloatingWidgetTitleBar.h.
using ads::CFloatingWidgetTitleBar::Super = QWidget |
Definition at line 69 of file FloatingWidgetTitleBar.h.
|
explicit |
Definition at line 133 of file FloatingWidgetTitleBar.cpp.
|
virtual |
Virtual Destructor
Definition at line 151 of file FloatingWidgetTitleBar.cpp.
|
signal |
This signal is emitted, if the close button is clicked.
void ads::CFloatingWidgetTitleBar::enableCloseButton | ( | bool | Enable | ) |
Enables / disables the window close button.
Definition at line 208 of file FloatingWidgetTitleBar.cpp.
|
protected |
|
signal |
This signal is emitted, if the maximize button is clicked.
|
overrideprotectedvirtual |
Definition at line 228 of file FloatingWidgetTitleBar.cpp.
|
overrideprotectedvirtual |
Definition at line 183 of file FloatingWidgetTitleBar.cpp.
|
overrideprotectedvirtual |
Definition at line 157 of file FloatingWidgetTitleBar.cpp.
|
overrideprotectedvirtual |
Definition at line 171 of file FloatingWidgetTitleBar.cpp.
|
protected |
void ads::CFloatingWidgetTitleBar::setMaximizedIcon | ( | bool | maximized | ) |
Change the maximize button icon according to current windows state
Definition at line 243 of file FloatingWidgetTitleBar.cpp.
|
protected |
Definition at line 258 of file FloatingWidgetTitleBar.cpp.
|
protected |
Definition at line 269 of file FloatingWidgetTitleBar.cpp.
void ads::CFloatingWidgetTitleBar::setTitle | ( | const QString & | Text | ) |
Sets the window title, that means, the text of the internal tile label.
Definition at line 215 of file FloatingWidgetTitleBar.cpp.
void ads::CFloatingWidgetTitleBar::updateStyle | ( | ) |
Update stylesheet style if a property changes
Definition at line 221 of file FloatingWidgetTitleBar.cpp.
|
private |
private data (pimpl)
Definition at line 55 of file FloatingWidgetTitleBar.h.
|
readwrite |
Definition at line 52 of file FloatingWidgetTitleBar.h.
|
readwrite |
Definition at line 53 of file FloatingWidgetTitleBar.h.