Resize wizard if advanced options are required

Fixes #1130
This commit is contained in:
Daniel Molkentin 2013-12-05 17:43:48 +01:00
parent fa9d9c9909
commit df5a72eb38
2 changed files with 2 additions and 23 deletions

View file

@ -131,6 +131,7 @@ void OwncloudAdvancedSetupPage::updateStatus()
_ui.syncModeLabel->setText(t);
_ui.syncModeLabel->setFixedHeight(_ui.syncModeLabel->sizeHint().height());
wizard()->resize(wizard()->sizeHint());
}
bool OwncloudAdvancedSetupPage::dataChanged()

View file

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>484</width>
<height>342</height>
<height>336</height>
</rect>
</property>
<property name="sizePolicy">
@ -57,12 +57,6 @@
</item>
<item>
<layout class="QFormLayout" name="advancedBox">
<property name="sizeConstraint">
<enum>QLayout::SetMinimumSize</enum>
</property>
<property name="fieldGrowthPolicy">
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
</property>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="sizePolicy">
@ -224,22 +218,6 @@
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="syncModeLabel">
<property name="text">