mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-25 15:30:14 +00:00
cleanup code
This commit is contained in:
parent
f5a275e8c4
commit
ce63acecf8
@ -52,7 +52,6 @@ ConfigureInput::ConfigureInput(QWidget* parent) :
|
|||||||
|
|
||||||
ConfigureInput::~ConfigureInput()
|
ConfigureInput::~ConfigureInput()
|
||||||
{
|
{
|
||||||
delete timer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Event handler for all button released() event.
|
/// Event handler for all button released() event.
|
||||||
|
@ -29,22 +29,21 @@ public:
|
|||||||
~ConfigureInput();
|
~ConfigureInput();
|
||||||
void applyConfiguration();
|
void applyConfiguration();
|
||||||
|
|
||||||
public Q_SLOTS:
|
|
||||||
void handleClick();
|
|
||||||
void restoreDefaults();
|
|
||||||
private:
|
private:
|
||||||
std::unique_ptr<Ui::ConfigureInput> ui;
|
std::unique_ptr<Ui::ConfigureInput> ui;
|
||||||
std::map<Settings::NativeInput::Values, QPushButton*> input_mapping;
|
std::map<Settings::NativeInput::Values, QPushButton*> input_mapping;
|
||||||
int key_pressed;
|
int key_pressed;
|
||||||
QPushButton* changing_button = nullptr; /// button currently waiting for key press.
|
QPushButton* changing_button = nullptr; /// button currently waiting for key press.
|
||||||
QString previous_mapping;
|
QString previous_mapping;
|
||||||
QTimer* timer = new QTimer();
|
QTimer* timer = new QTimer(this);
|
||||||
|
|
||||||
void setConfiguration();
|
void setConfiguration();
|
||||||
void removeDuplicates(const QString& newValue);
|
void removeDuplicates(const QString& newValue);
|
||||||
void keyPressEvent(QKeyEvent* event) override;
|
void keyPressEvent(QKeyEvent* event) override;
|
||||||
QString getKeyName(int key_code) const;
|
QString getKeyName(int key_code) const;
|
||||||
Qt::Key getKeyValue(const QString& text) const;
|
Qt::Key getKeyValue(const QString& text) const;
|
||||||
private Q_SLOTS:
|
|
||||||
void setKey();
|
void setKey();
|
||||||
|
private Q_SLOTS:
|
||||||
|
void handleClick();
|
||||||
|
void restoreDefaults();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user