File indexing completed on 2024-05-19 04:25:08

0001 /*
0002  *  SPDX-FileCopyrightText: 2017 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef KISCURSOROVERRIDELOCK_H
0008 #define KISCURSOROVERRIDELOCK_H
0009 
0010 #include <kritaglobal_export.h>
0011 #include <QCursor>
0012 #include <KisAdaptedLock.h>
0013 
0014 
0015 class KRITAGLOBAL_EXPORT KisCursorOverrideLockAdapter
0016 {
0017 public:
0018     KisCursorOverrideLockAdapter(const QCursor &cursor);
0019     ~KisCursorOverrideLockAdapter();
0020 
0021     void lock();
0022     void unlock();
0023 
0024 private:
0025     QCursor m_cursor;
0026 };
0027 
0028 KIS_DECLARE_ADAPTED_LOCK(KisCursorOverrideLock, KisCursorOverrideLockAdapter)
0029 
0030 #endif // KISCURSOROVERRIDELOCK_H