mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-22 01:44:49 -05:00
Previously the cursor icon would be set to Qt::SplitVCursor as those widgets were moved into the splitter handle layout
21 lines
397 B
C++
21 lines
397 B
C++
#pragma once
|
|
#include <QWidget>
|
|
|
|
namespace advss {
|
|
|
|
class CursorShapeChanger : public QObject {
|
|
public:
|
|
CursorShapeChanger(QObject *, Qt::CursorShape shape);
|
|
|
|
protected:
|
|
bool eventFilter(QObject *o, QEvent *e) override;
|
|
|
|
private:
|
|
Qt::CursorShape _shape;
|
|
std::atomic_bool _overrideActive = {false};
|
|
};
|
|
|
|
void SetCursorOnWidgetHover(QWidget *widget, Qt::CursorShape shape);
|
|
|
|
} // namespace advss
|