mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-26 18:50:06 +00:00
Prevent the speed slider from changing size
...when an element in its row has variable width.
This commit is contained in:
parent
3605d561fe
commit
ddaca20044
@ -50,6 +50,10 @@ ConfigureGeneral::ConfigureGeneral(QWidget* parent)
|
|||||||
.rightJustified(tr("unthrottled").size()));
|
.rightJustified(tr("unthrottled").size()));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Dummy label to avoid the columns growing/shrinking according to text length. This value
|
||||||
|
// should be enough and will scale according to the length of the localized string.
|
||||||
|
ui->fixed_label->setFixedWidth(tr("unthrottled").size() * 7);
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigureGeneral::~ConfigureGeneral() = default;
|
ConfigureGeneral::~ConfigureGeneral() = default;
|
||||||
|
@ -210,6 +210,16 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QLabel" name="fixed_label">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
Loading…
Reference in New Issue
Block a user