FastTrackOrg / FastTrack

FastTrack is a cross-platform application designed to track multiple objects in video recording.
https://www.fasttrack.sh
GNU General Public License v3.0
101 stars 17 forks source link

[refactore] QMenu and QAction #56

Closed bgallois closed 1 year ago

bgallois commented 1 year ago

Should be better if the pattern

...
QAction *action = new QAction("action");
connect(action, &QAction::triggered, this, doSomething);
menu->addAction(action);
...

is replaced by the most correct

...
QAction *action = menu->addAction("action");
connect(action, &QAction::triggered, this, doSomething);
...
bgallois commented 1 year ago

Done with a0e89912c34016b42e21daf1a44f1b1a0580f949, 05d9bd0b5029673e838ee3b57469dd0b00c2da54 and 8ea50dcf07fcdeaa6f0ce27fb9457156496f940d.