Krita Source Code Documentation
Loading...
Searching...
No Matches
KisCursorOverrideLock.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KISCURSOROVERRIDELOCK_H
8#define KISCURSOROVERRIDELOCK_H
9
10#include <kritaglobal_export.h>
11#include <QCursor>
12#include <KisAdaptedLock.h>
13
14
15class KRITAGLOBAL_EXPORT KisCursorOverrideLockAdapter
16{
17public:
18 KisCursorOverrideLockAdapter(const QCursor &cursor);
20
21 void lock();
22 void unlock();
23
24private:
25 QCursor m_cursor;
26};
27
29
30#endif // KISCURSOROVERRIDELOCK_H
#define KIS_DECLARE_ADAPTED_LOCK(Name, Adapter)