GUI preview: make window a dialog so that it closes properly on macos

This commit is contained in:
Jean-Francois Dockes 2018-12-02 13:53:19 +01:00
parent 5bb0b9f4a5
commit 1d9d9ec1fb
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Preview</class>
<widget class="QWidget" name="Preview">
<widget class="QDialog" name="Preview">
<property name="geometry">
<rect>
<x>0</x>

View File

@ -108,7 +108,7 @@ private:
};
class Preview : public QWidget, public Ui::Preview {
class Preview : public QDialog, public Ui::Preview {
Q_OBJECT
public: