move more code from setupConstraints to setupDialog as another workaround. this

really needs fixing.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1114067
This commit is contained in:
Volker Lanz 2010-04-12 17:05:10 +00:00
parent ec44af261e
commit ea2e6cba9f
1 changed files with 3 additions and 3 deletions

View File

@ -89,6 +89,9 @@ void SizeDialogBase::setupDialog()
if (!canGrow())
dialogWidget().partResizerWidget().setMaximumLength(partition().length());
if (!canMove())
dialogWidget().partResizerWidget().setMoveAllowed(false);
dialogWidget().spinFreeBefore().setValue(sectorsToDialogUnit(partition(), partition().firstSector() - minimumFirstSector()));
dialogWidget().spinFreeAfter().setValue(sectorsToDialogUnit(partition(), maximumLastSector() - partition().lastSector()));
@ -113,9 +116,6 @@ void SizeDialogBase::setupConstraints()
if (!canShrink() && !canGrow())
dialogWidget().spinCapacity().setEnabled(false);
if (!canMove())
dialogWidget().partResizerWidget().setMoveAllowed(false);
dialogWidget().partResizerWidget().setMaximumFirstSector(partition().maxFirstSector());
dialogWidget().partResizerWidget().setMinimumLastSector(partition().minLastSector());