2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2015-04-09 14:10:35 +02:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2015-04-09 14:10:35 +02:00
|
|
|
|
|
|
|
|
#include "utils_global.h"
|
|
|
|
|
|
|
|
|
|
#include <QCursor>
|
|
|
|
|
|
|
|
|
|
namespace Utils {
|
|
|
|
|
|
|
|
|
|
class QTCREATOR_UTILS_EXPORT OverrideCursor
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
OverrideCursor(const QCursor &cursor);
|
|
|
|
|
~OverrideCursor();
|
|
|
|
|
void set();
|
|
|
|
|
void reset();
|
|
|
|
|
private:
|
2018-07-23 10:45:40 +02:00
|
|
|
bool m_set = true;
|
2015-04-09 14:10:35 +02:00
|
|
|
QCursor m_cursor;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|