Files
86Box/src/qt/qt_keybind.hpp

34 lines
538 B
C++
Raw Normal View History

2025-04-19 19:50:45 -07:00
#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);
2025-04-19 19:50:45 -07:00
private:
Ui::KeyBinder *ui;
bool eventFilter(QObject *obj, QEvent *event);
2025-04-19 20:04:00 -07:00
void showEvent( QShowEvent* event );
2025-04-19 19:50:45 -07:00
};
#endif // QT_KeyBinder_HPP