mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-26 13:28:09 +03:00
Finish 1.4.114
This commit is contained in:
commit
fa53885d1e
@ -1135,13 +1135,6 @@ void BaseDesignIntf::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
|||||||
void BaseDesignIntf::showEditorDialog(){
|
void BaseDesignIntf::showEditorDialog(){
|
||||||
QWidget *editor = defaultEditor();
|
QWidget *editor = defaultEditor();
|
||||||
if (editor) {
|
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());
|
QDialog* dialog = new QDialog(QApplication::activeWindow());
|
||||||
dialog->setAttribute(Qt::WA_DeleteOnClose);
|
dialog->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
@ -1155,7 +1148,6 @@ void BaseDesignIntf::showEditorDialog(){
|
|||||||
dialog->layout()->addWidget(editor);
|
dialog->layout()->addWidget(editor);
|
||||||
connect(editor,SIGNAL(destroyed()),dialog,SLOT(close()));
|
connect(editor,SIGNAL(destroyed()),dialog,SLOT(close()));
|
||||||
dialog->exec();
|
dialog->exec();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user