Skip to content

Commit

Permalink
transient window manual test: set window type to Dialog
Browse files Browse the repository at this point in the history
On X11, setting the transient parent is not enough to get it
centered w.r.t. its parent: it must also be a dialog window.

Change-Id: Icfc664e17e53f23cd025dead30e3966f859a1dc5
Reviewed-by: Laszlo Agocs <[email protected]>
  • Loading branch information
ec1oud committed Oct 20, 2014
1 parent 1fe8a70 commit f5f8ee7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/manual/transientwindow/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ void MainWindow::toggleVisible()
m_window->setTransientParent(windowHandle());
m_window->setMinimumSize(QSize(200, 100));
m_window->setTitle("Transient Window");
m_window->setFlags(Qt::Dialog);
}
m_window->setVisible(!m_window->isVisible());
}

0 comments on commit f5f8ee7

Please sign in to comment.