Fix build with Qt < 5.7 & don't leak action
The parent in QAction(QString, QObject*parent=nullptr) is only optional for Qt >= 5.7