| | |
| | | #ifndef SYSTEMWINDOW_P_H |
| | | #define SYSTEMWINDOW_P_H |
| | | |
| | | // |
| | | // W A R N I N G !!! |
| | | // ----------------- |
| | | // |
| | | // This file is not part of the QWindowKit API. It is used purely as an |
| | | // implementation detail. This header file may change from version to |
| | | // version without notice, or may even be removed. |
| | | // |
| | | |
| | | #include <QtGui/QWindow> |
| | | #include <QtGui/QMouseEvent> |
| | | |
| | |
| | | target->setPosition(target->x(), 0); |
| | | } |
| | | target->removeEventFilter(this); |
| | | this->deleteLater(); |
| | | deleteLater(); |
| | | } |
| | | |
| | | default: |
| | |
| | | |
| | | case QEvent::MouseButtonRelease: { |
| | | target->removeEventFilter(this); |
| | | this->deleteLater(); |
| | | deleteLater(); |
| | | } |
| | | |
| | | default: |
| | |
| | | // QWindow::startSystemMove() and QWindow::startSystemResize() is first supported at Qt 5.15 |
| | | // QWindow::startSystemResize() returns false on macOS |
| | | // QWindow::startSystemMove() and QWindow::startSystemResize() returns false on Linux Unity DE |
| | | |
| | | |
| | | // When the new API fails, we emulate the window actions using the classical API. |
| | | |
| | | static inline void startSystemMove(QWindow *window) { |