Use default cursor icon on macro segment control hover

Previously the cursor icon would be set to Qt::SplitVCursor as those
widgets were moved into the splitter handle layout
This commit is contained in:
WarmUpTill
2024-06-18 20:43:59 +02:00
committed by WarmUpTill
parent 7702541d81
commit 7f5737d03f
5 changed files with 74 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
#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