File indexing completed on 2024-12-22 04:12:45

0001 /*
0002  *  SPDX-FileCopyrightText: 2018 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #include "KisInputActionGroup.h"
0008 
0009 KisInputActionGroupsMaskInterface::~KisInputActionGroupsMaskInterface() {
0010 }
0011 
0012 KisInputActionGroupsMaskGuard::KisInputActionGroupsMaskGuard(KisInputActionGroupsMaskInterface::SharedInterface sharedInterface, KisInputActionGroupsMask mask)
0013     : m_sharedInterface(sharedInterface),
0014       m_oldMask(sharedInterface->inputActionGroupsMask())
0015 {
0016     m_sharedInterface->setInputActionGroupsMask(mask);
0017 }
0018 
0019 KisInputActionGroupsMaskGuard::~KisInputActionGroupsMaskGuard() {
0020     m_sharedInterface->setInputActionGroupsMask(m_oldMask);
0021 }
0022 
0023