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)
66#ifdef DOCKS_DEVELOPER_MODE
68bool TitleBar::isCloseButtonEnabled()
const
70 if (QQuickItem *button = closeButton())
71 return button->isEnabled();
75bool TitleBar::isCloseButtonVisible()
const
77 if (QQuickItem *button = closeButton())
78 return button->isVisible();
83bool TitleBar::isFloatButtonVisible()
const
85 if (QQuickItem *button = floatButton())
86 return button->isVisible();
95 return m_titleBarQmlItem;
100 if (m_titleBarQmlItem)
101 return m_titleBarQmlItem->property(
"mouseAreaForTests").value<QQuickItem *>();
108 if (item != m_titleBarQmlItem) {
109 m_titleBarQmlItem = item;
114QQuickItem *TitleBar::floatButton()
const
116 return m_titleBarQmlItem ? m_titleBarQmlItem->property(
"floatButton").value<QQuickItem *>()
120QQuickItem *TitleBar::closeButton()
const
122 return m_titleBarQmlItem ? m_titleBarQmlItem->property(
"closeButton").value<QQuickItem *>()
QEvent::Type type() const const