mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-12 09:16:10 -04:00
This hides the cursor from the OBSHotkeyEdit spin boxes even when they are in focus. Uses a shared style owned by OBSApp.
25 lines
571 B
C++
25 lines
571 B
C++
#pragma once
|
|
|
|
#include <QProxyStyle>
|
|
|
|
class OBSProxyStyle : public QProxyStyle {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
OBSProxyStyle() : QProxyStyle() {}
|
|
|
|
OBSProxyStyle(const QString &key) : QProxyStyle(key) {}
|
|
|
|
int styleHint(StyleHint hint, const QStyleOption *option, const QWidget *widget,
|
|
QStyleHintReturn *returnData) const override;
|
|
};
|
|
|
|
class OBSInvisibleCursorProxyStyle : public OBSProxyStyle {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
OBSInvisibleCursorProxyStyle() : OBSProxyStyle() {}
|
|
|
|
int pixelMetric(PixelMetric pm, const QStyleOption *option, const QWidget *widget) const override;
|
|
};
|