Skip to content
Snippets Groups Projects
Unverified Commit 6c3e703f authored by Pospelov, Gennady's avatar Pospelov, Gennady Committed by GitHub
Browse files

Merge pull request #515 from waltervh/develop

Make RealSpaceDialog a QWidget. Solves problem off not staying on top…
parents 672b0a29 afde05ae
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ namespace
RealSpaceDialog::RealSpaceDialog(SampleModel *sampleModel,
QItemSelectionModel* selectionModel, QWidget *parent)
: QDialog(parent)
: QWidget(parent)
, m_sampleModel(sampleModel)
, m_selectionModel(selectionModel)
{
......@@ -37,6 +37,7 @@ RealSpaceDialog::RealSpaceDialog(SampleModel *sampleModel,
setMinimumSize(minimum_dialog_size);
resize(default_dialog_size);
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
setWindowFlags(windowFlags() | Qt::Window | Qt::WindowStaysOnTopHint);
// read the user's last persistent settings (size and position) of the dialog box
readSettings();
......@@ -54,7 +55,6 @@ RealSpaceDialog::RealSpaceDialog(SampleModel *sampleModel,
setLayout(layout);
setAttribute(Qt::WA_DeleteOnClose, true);
StyleUtils::setResizable(this);
}
void RealSpaceDialog::closeEvent(QCloseEvent *)
......
......@@ -28,7 +28,7 @@ class QBoxLayout;
//! Dialog to hold RealSpaceWidget.
class BA_CORE_API_ RealSpaceDialog : public QDialog
class BA_CORE_API_ RealSpaceDialog : public QWidget
{
Q_OBJECT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment