Adjust the bottom buttons layout

This commit fixes an issue where the bottom buttons of
'PreferencesDialog' are positioned erratically on non-macOS platforms.
For further information, refer to 'Need Help' section of #2394 PR.
This commit is contained in:
SeongTae Jeong
2020-10-01 21:44:39 +09:00
parent 47b61d25c1
commit b5a0d531cb
2 changed files with 29 additions and 13 deletions

View File

@@ -1934,14 +1934,32 @@ Can be set to 0 for disabling completion.</string>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::RestoreDefaults|QDialogButtonBox::Save</set>
</property>
</widget>
<layout class="QHBoxLayout" name="horizontalLayout_bottomButtons">
<item>
<widget class="QPushButton" name="buttonExportSettings">
<property name="text">
<string>Export Settings</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonImportSettings">
<property name="text">
<string>Import Settings</string>
</property>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::RestoreDefaults|QDialogButtonBox::Save</set>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>