10Q_LOGGING_CATEGORY(qWindowKitLog,
"qwindowkit")
29WindowAgentBasePrivate::~WindowAgentBasePrivate() =
default;
31void WindowAgentBasePrivate::init()
41 m_context.reset(createContext());
46#if defined(Q_OS_WINDOWS) && defined(QX_WINDOW_NATIVE)
47 return new WindowContextWin();
48#elif defined(Q_OS_MAC) && defined(QX_WINDOW_NATIVE)
49 return new WindowContextCocoa();
58 m_context.reset(createContext());
60 m_context->setup(host, delegate);
66WindowAgentBase::~WindowAgentBase() =
default;
73QVariant WindowAgentBase::windowAttribute(
const QString &key)
const
76 return d->m_context->windowAttribute(key);
107bool WindowAgentBase::setWindowAttribute(
const QString &key,
const QVariant &attribute)
110 return d->m_context->setWindowAttribute(key, attribute);
116void WindowAgentBase::showSystemMenu(
const QPoint &pos)
119 d->m_context->showSystemMenu(pos);
125void WindowAgentBase::centralize()
128 d->m_context->virtual_hook(WindowContext::CentralizeHook,
nullptr);
134void WindowAgentBase::raise()
137 d->m_context->virtual_hook(WindowContext::RaiseWindowHook,
nullptr);
WindowAgentBase is the base class of the specifiy window agent for QtWidgets and QtQuick.
#define QX_WINDOW_END_NAMESPACE
#define QX_WINDOW_BEGIN_NAMESPACE