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:
parent
ec44af261e
commit
ea2e6cba9f
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue