+ fix issue with default value and unit in InputField
This commit is contained in:
@@ -132,17 +132,16 @@ void Placement::slotActiveDocument(const Gui::Document& doc)
|
||||
documents.insert(doc.getDocument()->getName());
|
||||
}
|
||||
|
||||
bool Placement::hasValidInputs()
|
||||
bool Placement::hasValidInputs() const
|
||||
{
|
||||
QList<Gui::InputField*> sb = this->findChildren<Gui::InputField*>();
|
||||
for (QList<Gui::InputField*>::iterator it = sb.begin(); it != sb.end(); ++it) {
|
||||
if(!(*it)->hasValidInput())
|
||||
return false;
|
||||
if (!(*it)->hasValidInput())
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void Placement::revertTransformation()
|
||||
{
|
||||
for (std::set<std::string>::iterator it = documents.begin(); it != documents.end(); ++it) {
|
||||
|
||||
Reference in New Issue
Block a user