Skip to content

Commit

Permalink
Follow API change for QPlatformWindow::setWindowState
Browse files Browse the repository at this point in the history
Follow change introduced in d6588d2

Change-Id: I1040e973612edced105163c2af06d165a0c27d51
Reviewed-by: Thomas Senyk <thomas.senyk@pelagicore.com>
Reviewed-by: Jørgen Lind <jorgen.lind@gmail.com>
  • Loading branch information
Richard Moe Gustavsen authored and jorgen committed Oct 18, 2012
1 parent cb7e079 commit 3a192e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/plugins/platforms/wayland/qwaylandwindow.cpp
Expand Up @@ -291,7 +291,7 @@ Qt::ScreenOrientation QWaylandWindow::requestWindowOrientation(Qt::ScreenOrienta
return Qt::PrimaryOrientation;
}

Qt::WindowState QWaylandWindow::setWindowState(Qt::WindowState state)
void QWaylandWindow::setWindowState(Qt::WindowState state)
{
if (state == Qt::WindowFullScreen || state == Qt::WindowMaximized) {
QScreen *screen = window()->screen();
Expand All @@ -300,11 +300,7 @@ Qt::WindowState QWaylandWindow::setWindowState(Qt::WindowState state)
setGeometry(geometry);

QWindowSystemInterface::handleGeometryChange(window(), geometry);

return state;
}

return Qt::WindowNoState;
}

void QWaylandWindow::setWindowFlags(Qt::WindowFlags flags)
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/platforms/wayland/qwaylandwindow.h
Expand Up @@ -96,7 +96,7 @@ class QWaylandWindow : public QPlatformWindow
void handleContentOrientationChange(Qt::ScreenOrientation orientation);
Qt::ScreenOrientation requestWindowOrientation(Qt::ScreenOrientation orientation);

Qt::WindowState setWindowState(Qt::WindowState state);
void setWindowState(Qt::WindowState state);
void setWindowFlags(Qt::WindowFlags flags);

bool isExposed() const;
Expand Down

0 comments on commit 3a192e2

Please sign in to comment.