14#include "core/DragController_p.h"
16#include "kddockwidgets/core/Group.h"
17#include "kddockwidgets/core/FloatingWindow.h"
18#include "kddockwidgets/core/TitleBar.h"
20#include "core/Logging_p.h"
21#include "core/WindowBeingDragged_p.h"
22#include "core/Utils_p.h"
23#include "core/TitleBar_p.h"
31 , Core::TitleBarViewInterface(controller)
69#ifdef DOCKS_DEVELOPER_MODE
71bool TitleBar::isCloseButtonEnabled()
const
73 if (QQuickItem *button = closeButton())
74 return button->isEnabled();
78bool TitleBar::isCloseButtonVisible()
const
80 if (QQuickItem *button = closeButton())
81 return button->isVisible();
86bool TitleBar::isFloatButtonVisible()
const
88 if (QQuickItem *button = floatButton())
89 return button->isVisible();
98 return m_titleBarQmlItem;
103 if (m_titleBarQmlItem)
104 return m_titleBarQmlItem->property(
"mouseAreaForTests").value<QQuickItem *>();
111 if (item != m_titleBarQmlItem) {
112 m_titleBarQmlItem = item;
117QQuickItem *TitleBar::floatButton()
const
119 return m_titleBarQmlItem ? m_titleBarQmlItem->property(
"floatButton").value<QQuickItem *>()
123QQuickItem *TitleBar::closeButton()
const
125 return m_titleBarQmlItem ? m_titleBarQmlItem->property(
"closeButton").value<QQuickItem *>()
QEvent::Type type() const const