Gui: Fix header uniformity, whitespace, and doxygen fixes

This commit is contained in:
luz paz
2020-11-25 22:03:45 -05:00
committed by wwmayer
parent c6faecdcee
commit 298c677873
283 changed files with 2026 additions and 1903 deletions

View File

@@ -249,7 +249,7 @@ int UIntSpinBox::valueFromText (const QString & text) const
return d->mapToInt(newVal);
}
void UIntSpinBox::updateValidator()
void UIntSpinBox::updateValidator()
{
d->mValidator->setRange(this->minimum(), this->maximum());
}
@@ -281,7 +281,7 @@ void UIntSpinBox::setExpression(boost::shared_ptr<Expression> expr)
}
void UIntSpinBox::onChange() {
if (getExpression()) {
std::unique_ptr<Expression> result(getExpression()->eval());
NumberExpression * value = freecad_dynamic_cast<NumberExpression>(result.get());
@@ -454,7 +454,7 @@ IntSpinBox::~IntSpinBox() {
bool IntSpinBox::apply(const std::string& propName) {
if (!ExpressionBinding::apply(propName)) {
Gui::Command::doCommand(Gui::Command::Doc, "%s = %d", propName.c_str(), value());
return true;
@@ -464,7 +464,7 @@ bool IntSpinBox::apply(const std::string& propName) {
}
void IntSpinBox::bind(const ObjectIdentifier& _path) {
ExpressionBinding::bind(_path);
int frameWidth = style()->pixelMetric(QStyle::PM_SpinBoxFrameWidth);
@@ -490,7 +490,7 @@ void IntSpinBox::setExpression(boost::shared_ptr<Expression> expr)
}
void IntSpinBox::onChange() {
if (getExpression()) {
std::unique_ptr<Expression> result(getExpression()->eval());
NumberExpression * value = freecad_dynamic_cast<NumberExpression>(result.get());
@@ -647,7 +647,7 @@ DoubleSpinBox::~DoubleSpinBox() {
bool DoubleSpinBox::apply(const std::string& propName) {
if (!ExpressionBinding::apply(propName)) {
Gui::Command::doCommand(Gui::Command::Doc, "%s = %f", propName.c_str(), value());
return true;
@@ -657,7 +657,7 @@ bool DoubleSpinBox::apply(const std::string& propName) {
}
void DoubleSpinBox::bind(const ObjectIdentifier& _path) {
ExpressionBinding::bind(_path);
int frameWidth = style()->pixelMetric(QStyle::PM_SpinBoxFrameWidth);
@@ -683,7 +683,7 @@ void DoubleSpinBox::setExpression(boost::shared_ptr<Expression> expr)
}
void DoubleSpinBox::onChange() {
if (getExpression()) {
std::unique_ptr<Expression> result(getExpression()->eval());
NumberExpression * value = freecad_dynamic_cast<NumberExpression>(result.get());