Files
86Box/src/qt/qt_keybind.hpp
Cacodemon345 46546f2032 Keybind UI fixes
1. Don't clear the description text cell if selected; clear the actual keybind text instead.
2. Header texts are now correct.
3. Make the keybind dialog model and usable with dark mode
2025-04-21 14:46:21 +06:00

34 lines
538 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);
void showEvent( QShowEvent* event );
};
#endif // QT_KeyBinder_HPP