File indexing completed on 2024-05-19 05:55:48
0001 /* 0002 SPDX-FileCopyrightText: 2013 Valentin Rusu <kde@rusu.info> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "registercreateactionmethod.h" 0008 0009 Q_GLOBAL_STATIC(std::list<RegisterCreateActionsMethod::CreateActionsMethod>, createActionMethodList) 0010 0011 RegisterCreateActionsMethod::RegisterCreateActionsMethod(RegisterCreateActionsMethod::CreateActionsMethod method) 0012 { 0013 createActionMethodList->push_back(method); 0014 } 0015 0016 void RegisterCreateActionsMethod::createActions(KActionCollection *actionCollection) 0017 { 0018 auto it = createActionMethodList->begin(); 0019 auto end = createActionMethodList->end(); 0020 for (; it != end; it++) { 0021 (*it)(actionCollection); 0022 } 0023 }