refactor: make sure settings dialog pushes all options to the top
This commit is contained in:
parent
e4e332c13f
commit
c4704649ea
2 changed files with 31 additions and 11 deletions
|
|
@ -269,9 +269,6 @@ void SettingsDialog::updateControls()
|
|||
ui->cbElevateDaemon->setEnabled(writable && serviceChecked);
|
||||
} else if (ui->groupService->isVisibleTo(ui->tabAdvanced)) {
|
||||
ui->groupService->setVisible(false);
|
||||
const int bottomMargin = ui->tabAdvanced->layout()->contentsMargins().bottom() +
|
||||
(ui->tabAdvanced->layout()->spacing() * 2) + ui->groupService->height();
|
||||
ui->tabAdvanced->layout()->setContentsMargins(9, 9, 9, bottomMargin);
|
||||
}
|
||||
|
||||
ui->cbLanguageSync->setEnabled(writable && isClientMode());
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>550</width>
|
||||
<height>612</height>
|
||||
<width>549</width>
|
||||
<height>611</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
|
|
@ -284,6 +284,19 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Orientation::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
@ -303,6 +316,9 @@
|
|||
<property name="spacing">
|
||||
<number>15</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>9</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupNetworking">
|
||||
<property name="sizePolicy">
|
||||
|
|
@ -382,12 +398,6 @@
|
|||
<string>Logs</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="_3">
|
||||
<property name="topMargin">
|
||||
<number>15</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>15</number>
|
||||
</property>
|
||||
<property name="verticalSpacing">
|
||||
<number>7</number>
|
||||
</property>
|
||||
|
|
@ -573,6 +583,19 @@
|
|||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Orientation::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
|
|
|
|||
Loading…
Reference in a new issue