mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 17:58:37 +12:00
Qt/Input: Remove unsupported groupboxes from pad dialog and shorten text
This commit is contained in:
parent
c2379b8337
commit
25a1d86986
2 changed files with 18 additions and 5 deletions
|
@ -154,6 +154,11 @@ pad_settings_dialog::pad_settings_dialog(const std::string& device, std::shared_
|
|||
});
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->verticalLayout_left->removeWidget(ui->gb_vibration);
|
||||
delete ui->gb_vibration;
|
||||
}
|
||||
|
||||
// Enable Deadzone Settings
|
||||
if (m_handler->has_deadzones())
|
||||
|
@ -187,6 +192,14 @@ pad_settings_dialog::pad_settings_dialog(const std::string& device, std::shared_
|
|||
RepaintPreviewLabel(ui->preview_stick_right, value, ui->slider_stick_right->sizeHint().width(), rx, ry);
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->verticalLayout_right->removeWidget(ui->gb_sticks);
|
||||
ui->verticalLayout_left->removeWidget(ui->gb_triggers);
|
||||
|
||||
delete ui->gb_sticks;
|
||||
delete ui->gb_triggers;
|
||||
}
|
||||
|
||||
auto insertButton = [this](int id, QPushButton* button, cfg::string* cfg_name)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue