QAction: Note that the QAction parent parameter is optional since 5.7

Change-Id: Id1cb5591dae55cd22621cd8e403d2056f1aa9364
Reviewed-by: Sérgio Martins <sergio.martins@kdab.com>
bb10
hjk 2017-06-15 15:00:28 +02:00 committed by Sérgio Martins
parent ebae7fc426
commit 1e1a2c7397
1 changed files with 2 additions and 0 deletions

View File

@ -277,6 +277,8 @@ void QActionPrivate::setShortcutEnabled(bool enable, QShortcutMap &map)
/*!
Constructs an action with \a parent. If \a parent is an action
group the action will be automatically inserted into the group.
\note The \a parent argument is optional since Qt 5.7.
*/
QAction::QAction(QObject* parent)
: QAction(*new QActionPrivate, parent)