13#include "core/Utils_p.h"
14#include "core/View_p.h"
15#include "kddockwidgets/core/Controller.h"
18#ifdef KDDW_FRONTEND_QTWIDGETS
22#ifdef KDDW_FRONTEND_QTQUICK
31#if defined(DOCKS_DEVELOPER_MODE)
32int View_qt::s_logicalDpiFactorOverride = 0;
35class View_qt::EventFilter :
public QObject
44 ~EventFilter()
override;
48 return q->deliverViewEventToFilters(ev);
55 : View(controller, type)
56 , m_eventFilter(thisObj ? new EventFilter(this, thisObj) : nullptr)
66View_qt::EventFilter::~EventFilter() =
default;
88 if (
auto viewqt =
dynamic_cast<View_qt *
>(view))
89 return viewqt->thisObject();
94#ifdef KDDW_FRONTEND_QTWIDGETS
97QWidget *View_qt::asQWidget(View *view)
99 return qobject_cast<QWidget *>(
asQObject(view));
113#ifdef KDDW_FRONTEND_QTQUICK
116QQuickItem *View_qt::asQQuickItem(View *view)
118 return qobject_cast<QQuickItem *>(
asQObject(view));
virtual bool eventFilter(QObject *watched, QEvent *event)
void installEventFilter(QObject *filterObj)
void setObjectName(const QString &name)