Qt: Use click event rather than pressed to rebind
This commit is contained in:
parent
fce35d6dbe
commit
ce46475e41
|
@ -16,7 +16,7 @@ InputBindingWidget::InputBindingWidget(QtHostInterface* host_interface, QString
|
||||||
setMinimumWidth(150);
|
setMinimumWidth(150);
|
||||||
setMaximumWidth(150);
|
setMaximumWidth(150);
|
||||||
|
|
||||||
connect(this, &QPushButton::pressed, this, &InputBindingWidget::onPressed);
|
connect(this, &QPushButton::clicked, this, &InputBindingWidget::onClicked);
|
||||||
}
|
}
|
||||||
|
|
||||||
InputBindingWidget::~InputBindingWidget()
|
InputBindingWidget::~InputBindingWidget()
|
||||||
|
@ -83,7 +83,7 @@ void InputBindingWidget::reloadBinding()
|
||||||
setText(m_current_binding_value);
|
setText(m_current_binding_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void InputBindingWidget::onPressed()
|
void InputBindingWidget::onClicked()
|
||||||
{
|
{
|
||||||
if (isListeningForInput())
|
if (isListeningForInput())
|
||||||
stopListeningForInput();
|
stopListeningForInput();
|
||||||
|
|
Loading…
Reference in New Issue