Skip to content

Commit 7ffaa20

Browse files
Chr1sNoCalcProgrammer1
authored andcommitted
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 <[email protected]>
1 parent 114cbbe commit 7ffaa20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

qt/OpenRGBDialog2.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ OpenRGBDialog2::OpenRGBDialog2(QWidget *parent) : QMainWindow(parent), ui(new Op
341341
trayIconMenu->addMenu(quickColorsMenu);
342342

343343
QAction* actionLightsOff = new QAction("Lights Off", this);
344+
actionLightsOff->setObjectName("ActionLightsOff");
344345
connect(actionLightsOff, SIGNAL(triggered()), this, SLOT(on_LightsOff()));
345346
trayIconMenu->addAction(actionLightsOff);
346347

0 commit comments

Comments
 (0)