mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
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:
parent
e4f4c1e154
commit
c97a239c29
@ -41,7 +41,7 @@ class NewElementWizard : public QWizard
|
||||
|
||||
// constructors, destructor
|
||||
public:
|
||||
NewElementWizard(QWidget * = nullptr, Qt::WindowFlags = nullptr);
|
||||
NewElementWizard(QWidget * = nullptr, Qt::WindowFlags = Qt::Widget);
|
||||
~NewElementWizard() override;
|
||||
|
||||
void preselectedLocation(const ElementsLocation &location);
|
||||
|
@ -28,7 +28,7 @@ class QETMainWindow : public QMainWindow {
|
||||
|
||||
// constructor, destructor
|
||||
public:
|
||||
QETMainWindow(QWidget * = nullptr, Qt::WindowFlags = nullptr);
|
||||
QETMainWindow(QWidget * = nullptr, Qt::WindowFlags = Qt::Widget);
|
||||
~QETMainWindow() override;
|
||||
|
||||
// methods
|
||||
|
@ -36,7 +36,7 @@ class QETPrintPreviewDialog : public QDialog {
|
||||
|
||||
// constructors, destructor
|
||||
public:
|
||||
QETPrintPreviewDialog(QETProject *, QPrinter *, QWidget * = nullptr, Qt::WindowFlags = nullptr);
|
||||
QETPrintPreviewDialog(QETProject *, QPrinter *, QWidget * = nullptr, Qt::WindowFlags = Qt::Widget);
|
||||
~QETPrintPreviewDialog() override;
|
||||
private:
|
||||
QETPrintPreviewDialog(const QETPrintPreviewDialog &);
|
||||
|
Loading…
x
Reference in New Issue
Block a user