UI: Set minimum width of add/remove hotkey buttons
This prevents odd behavior with Qt5.4 turning the rounded buttons into square push buttons.
This commit is contained in:
parent
f6234ec90d
commit
d6085ac05c
@ -288,10 +288,12 @@ void OBSHotkeyWidget::AddEdit(obs_key_combination combo, int idx)
|
|||||||
|
|
||||||
auto add = new QPushButton;
|
auto add = new QPushButton;
|
||||||
add->setText("+");
|
add->setText("+");
|
||||||
|
add->setMinimumWidth(50);
|
||||||
|
|
||||||
auto remove = new QPushButton;
|
auto remove = new QPushButton;
|
||||||
remove->setText("-");
|
remove->setText("-");
|
||||||
remove->setEnabled(removeButtons.size() > 0);
|
remove->setEnabled(removeButtons.size() > 0);
|
||||||
|
remove->setMinimumWidth(50);
|
||||||
|
|
||||||
auto CurrentIndex = [&, remove]
|
auto CurrentIndex = [&, remove]
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user