Setting Object name for QAction "Lights Off" to resolve #1594
* Setting object name allows SIGNAL / SLOT connection for plugins Amended action name to PascalCase (ActionLightsOff) for plugin API consistency. Commit amended by Adam Honse <calcprogrammer1@gmail.com>
This commit is contained in:
parent
114cbbef7d
commit
7ffaa20ba6
1 changed files with 1 additions and 0 deletions
|
|
@ -341,6 +341,7 @@ OpenRGBDialog2::OpenRGBDialog2(QWidget *parent) : QMainWindow(parent), ui(new Op
|
|||
trayIconMenu->addMenu(quickColorsMenu);
|
||||
|
||||
QAction* actionLightsOff = new QAction("Lights Off", this);
|
||||
actionLightsOff->setObjectName("ActionLightsOff");
|
||||
connect(actionLightsOff, SIGNAL(triggered()), this, SLOT(on_LightsOff()));
|
||||
trayIconMenu->addAction(actionLightsOff);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue