Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Selecting too long causes the dialog too wide
Browse files Browse the repository at this point in the history
for the screen to display or use. Change SizeAdjustPolicy from AdjustToContentsOnFirstShow to AdjustToMinimumContentsLengthWithIcon
VEXLife committed Jan 24, 2025
1 parent 282009e commit 219c587
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion RedPandaIDE/widgets/searchdialog.ui
Original file line number Diff line number Diff line change
@@ -95,6 +95,9 @@
<property name="insertPolicy">
<enum>QComboBox::InsertAtTop</enum>
</property>
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToMinimumContentsLengthWithIcon</enum>
</property>
</widget>
</item>
<item row="1" column="1">
@@ -112,7 +115,7 @@
<enum>QComboBox::InsertAtTop</enum>
</property>
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToContentsOnFirstShow</enum>
<enum>QComboBox::AdjustToMinimumContentsLengthWithIcon</enum>
</property>
</widget>
</item>
3 changes: 3 additions & 0 deletions RedPandaIDE/widgets/searchinfiledialog.ui
Original file line number Diff line number Diff line change
@@ -107,6 +107,9 @@
<property name="insertPolicy">
<enum>QComboBox::InsertAtTop</enum>
</property>
<property name="sizeAdjustPolicy">
<enum>QComboBox::SizeAdjustPolicy::AdjustToMinimumContentsLengthWithIcon</enum>
</property>
</widget>
</item>
<item row="2" column="1">

0 comments on commit 219c587

Please sign in to comment.