Skip to content

Commit

Permalink
UI: Set minimum width of add/remove hotkey buttons
Browse files Browse the repository at this point in the history
This prevents odd behavior with Qt5.4 turning the rounded buttons
into square push buttons.
  • Loading branch information
kc5nra authored and palana committed May 12, 2015
1 parent f6234ec commit d6085ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions obs/hotkey-edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]
{
Expand Down

0 comments on commit d6085ac

Please sign in to comment.