1
0

Document the createAction bools

This commit is contained in:
NiLuJe
2020-04-27 23:32:43 +02:00
committed by Patrick Gaskin
parent 56af774366
commit 89006c3ea3

View File

@@ -25,9 +25,12 @@ static MenuTextItem* (*AbstractNickelMenuController_createMenuTextItem_orig)(voi
static MenuTextItem* (*AbstractNickelMenuController_createMenuTextItem)(void*, QMenu*, QString const&, bool, bool, QString const&); static MenuTextItem* (*AbstractNickelMenuController_createMenuTextItem)(void*, QMenu*, QString const&, bool, bool, QString const&);
// AbstractNickelMenuController::createAction finishes adding the action to the // AbstractNickelMenuController::createAction finishes adding the action to the
// menu. IDK what the bool params are for, but the first and second always seem // menu.
// to be true (I know one or the other is for if it is greyed out), and the // First bool is whether to close the menu on tap (false: keep it open)
// third is whether to add a separator after it. // Second bool is whether the entry is enabled (false: grayed out)
// Third bool is whether to add a separator after the entry (false: no separator)
// Note that, even in the Main Menu, it'll inherit the color of a Reader Menu separator (#66),
// instead of the usual dim (#BB) or solid (#00) seen in the stock Main Menu.
static QAction* (*AbstractNickelMenuController_createAction)(void*, QMenu*, QWidget*, bool, bool, bool); static QAction* (*AbstractNickelMenuController_createAction)(void*, QMenu*, QWidget*, bool, bool, bool);
// ConfirmationDialogFactory::showOKDialog does what it says, with the provided // ConfirmationDialogFactory::showOKDialog does what it says, with the provided