| | |
| | | #include <QtGui/QGuiApplication> |
| | | |
| | | #include "qwkglobal_p.h" |
| | | |
| | | #include "systemwindow_p.h" |
| | | namespace QWK { |
| | | |
| | | struct NSWindowProxy { |
| | |
| | | if (type < QEvent::MouseButtonPress || type > QEvent::MouseMove) { |
| | | return false; |
| | | } |
| | | QObject *host = m_context->host(); |
| | | QWindow *window = m_context->window(); |
| | | WindowItemDelegate *delegate = m_context->delegate(); |
| | | auto host = m_context->host(); |
| | | auto window = m_context->window(); |
| | | auto delegate = m_context->delegate(); |
| | | auto me = static_cast<const QMouseEvent *>(event); |
| | | |
| | | QPoint scenePos = getMouseEventScenePos(me); |
| | |
| | | } |
| | | case PreparingMove: { |
| | | m_windowStatus = Moving; |
| | | window->startSystemMove(); |
| | | startSystemMove(window); |
| | | event->accept(); |
| | | return true; |
| | | } |