Qt/Input: disable TabFocus while mapping buttons in order to map Tab key
This commit is contained in:
@@ -278,6 +278,11 @@ void pad_settings_dialog::ReactivateButtons()
|
|||||||
m_button_id = button_ids::id_pad_begin;
|
m_button_id = button_ids::id_pad_begin;
|
||||||
UpdateLabel();
|
UpdateLabel();
|
||||||
SwitchButtons(true);
|
SwitchButtons(true);
|
||||||
|
|
||||||
|
for (auto but : m_padButtons->buttons())
|
||||||
|
{
|
||||||
|
but->setFocusPolicy(Qt::StrongFocus);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void pad_settings_dialog::RepaintPreviewLabel(QLabel* l, int dz, int w, int x, int y)
|
void pad_settings_dialog::RepaintPreviewLabel(QLabel* l, int dz, int w, int x, int y)
|
||||||
@@ -405,6 +410,11 @@ void pad_settings_dialog::OnPadButtonClicked(int id)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (auto but : m_padButtons->buttons())
|
||||||
|
{
|
||||||
|
but->setFocusPolicy(Qt::ClickFocus);
|
||||||
|
}
|
||||||
|
|
||||||
m_button_id = id;
|
m_button_id = id;
|
||||||
m_padButtons->button(m_button_id)->setText(tr("[ Waiting %1 ]").arg(MAX_SECONDS));
|
m_padButtons->button(m_button_id)->setText(tr("[ Waiting %1 ]").arg(MAX_SECONDS));
|
||||||
m_padButtons->button(m_button_id)->setPalette(QPalette(Qt::blue));
|
m_padButtons->button(m_button_id)->setPalette(QPalette(Qt::blue));
|
||||||
|
|||||||
Reference in New Issue
Block a user