Gui: Add Action::setBlockedChecked

Remove the second parameter of Action::setChecked and
provide Action::setBlockedChecked instead.
This commit is contained in:
wmayer
2025-01-22 15:28:46 +01:00
committed by Ladislav Michl
parent 8644498400
commit 0ea02d60c1
6 changed files with 31 additions and 25 deletions

View File

@@ -362,7 +362,7 @@ Action* StdCmdToggleToolBarLock::createAction()
Action* action = Command::createAction();
action->setCheckable(true);
action->setChecked(ToolBarManager::getInstance()->areToolBarsLocked(), true);
action->setBlockedChecked(ToolBarManager::getInstance()->areToolBarsLocked());
return action;
}
@@ -420,7 +420,7 @@ Action * StdCmdStatusBar::createAction()
{
Action *pcAction = Command::createAction();
pcAction->setCheckable(true);
pcAction->setChecked(false, true);
pcAction->setBlockedChecked(false);
auto fsb = new FilterStatusBar(pcAction);
getMainWindow()->statusBar()->installEventFilter(fsb);