UI: Set minimum width of add/remove hotkey buttons

This prevents odd behavior with Qt5.4 turning the rounded buttons
into square push buttons.
master
John Bradley 2015-05-12 15:30:49 -05:00 committed by Palana
parent f6234ec90d
commit d6085ac05c
1 changed files with 2 additions and 0 deletions

View File

@ -288,10 +288,12 @@ void OBSHotkeyWidget::AddEdit(obs_key_combination combo, int idx)
auto add = new QPushButton;
add->setText("+");
add->setMinimumWidth(50);
auto remove = new QPushButton;
remove->setText("-");
remove->setEnabled(removeButtons.size() > 0);
remove->setMinimumWidth(50);
auto CurrentIndex = [&, remove]
{