fix deprecated warning Qt::WindowFlags = nullptr

Use default constructor instead

Qt::Widget 0x00000000
This is the default type for QWidget.
Widgets of this type are child widgets if they have a parent,
and independent windows if they have no parent.
See also Qt::Window and Qt::SubWindow.
This commit is contained in:
Simon De Backer 2020-06-09 23:06:31 +02:00 committed by Laurent Trinques
parent e4f4c1e154
commit c97a239c29
3 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ class NewElementWizard : public QWizard
// constructors, destructor // constructors, destructor
public: public:
NewElementWizard(QWidget * = nullptr, Qt::WindowFlags = nullptr); NewElementWizard(QWidget * = nullptr, Qt::WindowFlags = Qt::Widget);
~NewElementWizard() override; ~NewElementWizard() override;
void preselectedLocation(const ElementsLocation &location); void preselectedLocation(const ElementsLocation &location);

View File

@ -28,7 +28,7 @@ class QETMainWindow : public QMainWindow {
// constructor, destructor // constructor, destructor
public: public:
QETMainWindow(QWidget * = nullptr, Qt::WindowFlags = nullptr); QETMainWindow(QWidget * = nullptr, Qt::WindowFlags = Qt::Widget);
~QETMainWindow() override; ~QETMainWindow() override;
// methods // methods

View File

@ -36,7 +36,7 @@ class QETPrintPreviewDialog : public QDialog {
// constructors, destructor // constructors, destructor
public: public:
QETPrintPreviewDialog(QETProject *, QPrinter *, QWidget * = nullptr, Qt::WindowFlags = nullptr); QETPrintPreviewDialog(QETProject *, QPrinter *, QWidget * = nullptr, Qt::WindowFlags = Qt::Widget);
~QETPrintPreviewDialog() override; ~QETPrintPreviewDialog() override;
private: private:
QETPrintPreviewDialog(const QETPrintPreviewDialog &); QETPrintPreviewDialog(const QETPrintPreviewDialog &);