| | |
| | | |
| | | namespace QWK { |
| | | |
| | | CoreWindowAgentPrivate::CoreWindowAgentPrivate() : q_ptr(nullptr), eventHandler(nullptr) { |
| | | CoreWindowAgentPrivate::CoreWindowAgentPrivate() : q_ptr(nullptr), context(nullptr) { |
| | | } |
| | | |
| | | CoreWindowAgentPrivate::~CoreWindowAgentPrivate() = default; |
| | |
| | | delete handler; |
| | | return false; |
| | | } |
| | | eventHandler.reset(handler); |
| | | context.reset(handler); |
| | | return true; |
| | | } |
| | | |
| | |
| | | |
| | | void CoreWindowAgent::showSystemMenu(const QPoint &pos) { |
| | | Q_D(CoreWindowAgent); |
| | | d->eventHandler->showSystemMenu(pos); |
| | | d->context->showSystemMenu(pos); |
| | | } |
| | | |
| | | void CoreWindowAgent::startSystemMove(const QPoint &pos) { |
| | | Q_D(CoreWindowAgent); |
| | | auto win = d->eventHandler->window(); |
| | | auto win = d->context->window(); |
| | | if (!win) { |
| | | return; |
| | | } |
| | |
| | | |
| | | void CoreWindowAgent::startSystemResize(Qt::Edges edges, const QPoint &pos) { |
| | | Q_D(CoreWindowAgent); |
| | | auto win = d->eventHandler->window(); |
| | | auto win = d->context->window(); |
| | | if (!win) { |
| | | return; |
| | | } |