mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 23:41:26 +12:00
Qt/Input: disable TabFocus while mapping buttons in order to map Tab key
This commit is contained in:
parent
dd4ccb059e
commit
2cd551a222
1 changed files with 10 additions and 0 deletions
|
@ -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));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue