Files
86Box/src/qt/qt_keybind.hpp
2025-06-28 23:54:07 -04:00

34 lines
556 B
C++

#ifndef QT_KeyBinder_HPP
#define QT_KeyBinder_HPP
#include <QDialog>
#include "qt_settings.hpp"
extern "C" {
struct _device_;
}
namespace Ui {
class KeyBinder;
}
class Settings;
class KeyBinder : public QDialog {
Q_OBJECT
public:
explicit KeyBinder(QWidget *parent = nullptr);
~KeyBinder() override;
static QKeySequence BindKey(QWidget* widget, QString CurValue);
private:
Ui::KeyBinder *ui;
bool eventFilter(QObject *obj, QEvent *event) override;
void showEvent( QShowEvent* event ) override;
};
#endif // QT_KeyBinder_HPP