Browse Source

UI: Set minimum width of add/remove hotkey buttons

This prevents odd behavior with Qt5.4 turning the rounded buttons
into square push buttons.
John Bradley 10 years ago
parent
commit
d6085ac05c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      obs/hotkey-edit.cpp

+ 2 - 0
obs/hotkey-edit.cpp

@@ -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]
 	{