Skip to content

Commit

Permalink
Haiku: Fix compilation after QPA API change
Browse files Browse the repository at this point in the history
Remove the calls to QWindowSystemInterface::setSynchronousWindowsSystemEvents
in the Haiku QPA plugin, because the method was renamed in latest QPA API and
we do not really have to call them anyway (was a copy&paste leftover from QNX QPA).

Change-Id: I67db43e89c093e5679f11d967d609846008cad0d
Reviewed-by: Augustin Cavalier <[email protected]>
Reviewed-by: Maurice Kalinowski <[email protected]>
  • Loading branch information
tokoe-kdab committed May 4, 2015
1 parent 862cceb commit 8a51ca0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/plugins/platforms/haiku/qhaikuwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,21 +306,17 @@ void QHaikuWindow::haikuWindowMoved(const QPoint &pos)
const QRect newGeometry(pos, geometry().size());

QPlatformWindow::setGeometry(newGeometry);
QWindowSystemInterface::setSynchronousWindowsSystemEvents(true);
QWindowSystemInterface::handleGeometryChange(window(), newGeometry);
QWindowSystemInterface::handleExposeEvent(window(), newGeometry);
QWindowSystemInterface::setSynchronousWindowsSystemEvents(false);
}

void QHaikuWindow::haikuWindowResized(const QSize &size, bool zoomInProgress)
{
const QRect newGeometry(geometry().topLeft(), size);

QPlatformWindow::setGeometry(newGeometry);
QWindowSystemInterface::setSynchronousWindowsSystemEvents(true);
QWindowSystemInterface::handleGeometryChange(window(), newGeometry);
QWindowSystemInterface::handleExposeEvent(window(), newGeometry);
QWindowSystemInterface::setSynchronousWindowsSystemEvents(false);

if ((m_windowState == Qt::WindowMaximized) && !zoomInProgress) {
// the user has resized the window while maximized -> reset maximized flag
Expand Down

0 comments on commit 8a51ca0

Please sign in to comment.