Fix Z-order for chart settings

Always on top hint is not appropriate for the
chart settings since the LTM chart settings
open another dialog -- which then appear behind
the dialog and cannot be moved.

Fixes #401.
This commit is contained in:
Mark Liversedge
2012-12-22 19:10:41 +00:00
parent 5afe2c3e78
commit f761b68de7

View File

@@ -25,7 +25,7 @@ ChartSettings::ChartSettings(QWidget *parent, QWidget *contents) : QDialog(paren
// Set the main window title.
setWindowTitle(tr("Chart Settings"));
setAttribute(Qt::WA_DeleteOnClose);
setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint | Qt::WindowCloseButtonHint);
setWindowFlags(windowFlags() | Qt::WindowCloseButtonHint);
setModal(true);
// Create the main layout box.