| | |
| | | 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) { |