qt: Disable alt key menu navigation with style override
This commit is contained in:
16
src/qt/qt_styleoverride.hpp
Normal file
16
src/qt/qt_styleoverride.hpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef QT_STYLEOVERRIDE_HPP
|
||||
#define QT_STYLEOVERRIDE_HPP
|
||||
|
||||
#include <QProxyStyle>
|
||||
|
||||
class StyleOverride : public QProxyStyle
|
||||
{
|
||||
public:
|
||||
int styleHint(
|
||||
StyleHint hint,
|
||||
const QStyleOption *option = nullptr,
|
||||
const QWidget *widget = nullptr,
|
||||
QStyleHintReturn *returnData = nullptr) const override;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user