Use default nullptr parents in QAction constructors
In user code it is not uncommon to have QActions as proper members in structures. Being forced to pass a null parent in their constructors is uncomfortable. Change-Id: I10d0b0b39d7f8c2b158af1136367b44f1150d4df Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
parent
6be6d3bc19
commit
536da5eb6a
@ -90,9 +90,9 @@ public:
|
|||||||
NormalPriority = 128,
|
NormalPriority = 128,
|
||||||
HighPriority = 256};
|
HighPriority = 256};
|
||||||
Q_ENUM(Priority)
|
Q_ENUM(Priority)
|
||||||
explicit QAction(QObject* parent);
|
explicit QAction(QObject *parent = nullptr);
|
||||||
QAction(const QString &text, QObject* parent);
|
explicit QAction(const QString &text, QObject *parent = nullptr);
|
||||||
QAction(const QIcon &icon, const QString &text, QObject* parent);
|
explicit QAction(const QIcon &icon, const QString &text, QObject *parent = nullptr);
|
||||||
|
|
||||||
~QAction();
|
~QAction();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user