#include "qt_helpers.h"
#include "Validator.h"
-#include "FuncRequest.h"
#include "Spacing.h"
#include "VSpace.h"
// initialize the length validator
addCheckedWidget(valueLE, valueL);
+ enableCustom(spacingCO->currentIndex());
}
{
bool const enable = selection == 5;
valueLE->setEnabled(enable);
+ if (enable)
+ valueLE->setFocus();
+ valueL->setEnabled(enable);
unitCO->setEnabled(enable);
+ changed();
}
InsetVSpace const * vs = static_cast<InsetVSpace const *>(inset);
VSpace const & params = vs->space();
setWidgetsFromVSpace(params, spacingCO, valueLE, unitCO, keepCB);
+ enableCustom(spacingCO->currentIndex());
}
} // namespace frontend