diff options
author | hjk <hjk@theqtcompany.com> | 2016-03-18 13:20:43 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-03-23 18:28:14 +0000 |
commit | 536da5eb6ab1b4b07c13ad9f4c0f69dba5ca1624 (patch) | |
tree | d387abdce7404e888aa9994cf940d47393c563c9 | |
parent | 6be6d3bc1973f87e87936d6770c62cbda6193fbd (diff) |
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>
-rw-r--r-- | src/widgets/kernel/qaction.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widgets/kernel/qaction.h b/src/widgets/kernel/qaction.h index abfa2cdd42..bd491c89ca 100644 --- a/src/widgets/kernel/qaction.h +++ b/src/widgets/kernel/qaction.h @@ -90,9 +90,9 @@ public: NormalPriority = 128, HighPriority = 256}; Q_ENUM(Priority) - explicit QAction(QObject* parent); - QAction(const QString &text, QObject* parent); - QAction(const QIcon &icon, const QString &text, QObject* parent); + explicit QAction(QObject *parent = nullptr); + explicit QAction(const QString &text, QObject *parent = nullptr); + explicit QAction(const QIcon &icon, const QString &text, QObject *parent = nullptr); ~QAction(); |