From 4f0bde628bcacaab6841d4ff33afc5327b49371a Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Tue, 8 Jan 2019 19:52:58 +0300 Subject: [PATCH] Default editor dialog execution is unified --- limereport/lrbasedesignintf.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/limereport/lrbasedesignintf.cpp b/limereport/lrbasedesignintf.cpp index 052ed7c..732933c 100644 --- a/limereport/lrbasedesignintf.cpp +++ b/limereport/lrbasedesignintf.cpp @@ -1135,13 +1135,6 @@ void BaseDesignIntf::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) void BaseDesignIntf::showEditorDialog(){ QWidget *editor = defaultEditor(); if (editor) { - -#ifdef Q_OS_WIN - editor->setAttribute(Qt::WA_DeleteOnClose); - editor->setWindowFlags(Qt::Dialog); - editor->setWindowModality(Qt::ApplicationModal); - editor->show(); -#else QDialog* dialog = new QDialog(QApplication::activeWindow()); dialog->setAttribute(Qt::WA_DeleteOnClose); #ifdef Q_OS_MAC @@ -1155,7 +1148,6 @@ void BaseDesignIntf::showEditorDialog(){ dialog->layout()->addWidget(editor); connect(editor,SIGNAL(destroyed()),dialog,SLOT(close())); dialog->exec(); -#endif } }