[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
committed by
WandererFan
parent
a207d11fa4
commit
e92ed45df9
@@ -95,4 +95,4 @@ Q_EXPORT_PLUGIN2(qsvg, QSvgPlugin)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif// !QT_NO_IMAGEFORMATPLUGIN
|
||||
#endif // !QT_NO_IMAGEFORMATPLUGIN
|
||||
|
||||
@@ -153,7 +153,7 @@ bool QSvgIOHandler::canRead() const
|
||||
return false;
|
||||
}
|
||||
if (d->loaded && !d->readDone) {
|
||||
return true;// Will happen if we have been asked for the size
|
||||
return true; // Will happen if we have been asked for the size
|
||||
}
|
||||
|
||||
QByteArray buf = device()->peek(8);
|
||||
@@ -220,7 +220,7 @@ bool QSvgIOHandler::read(QImage* image)
|
||||
p.setRenderHint(QPainter::Antialiasing);
|
||||
p.setRenderHint(QPainter::TextAntialiasing);
|
||||
p.setRenderHint(QPainter::SmoothPixmapTransform);
|
||||
p.setOpacity(0);// important to keep transparent background
|
||||
p.setOpacity(0); // important to keep transparent background
|
||||
d->webView.page()->mainFrame()->render(&p);
|
||||
#endif
|
||||
p.end();
|
||||
@@ -308,4 +308,4 @@ bool QSvgIOHandler::canRead(QIODevice* device)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif// QT_NO_SVGRENDERER
|
||||
#endif // QT_NO_SVGRENDERER
|
||||
|
||||
@@ -73,5 +73,5 @@ private:
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif// QT_NO_SVGRENDERER
|
||||
#endif// QSVGIOHANDLER_H
|
||||
#endif // QT_NO_SVGRENDERER
|
||||
#endif // QSVGIOHANDLER_H
|
||||
|
||||
@@ -290,7 +290,7 @@ void AccelLineEdit::keyPressEvent(QKeyEvent* e)
|
||||
return;
|
||||
}
|
||||
else if (state == Qt::NoModifier && key == Qt::Key_Backspace) {
|
||||
return;// clears the edit field
|
||||
return; // clears the edit field
|
||||
}
|
||||
|
||||
switch (state) {
|
||||
@@ -554,7 +554,7 @@ const QString& Unit::getString() const
|
||||
return unit;
|
||||
}
|
||||
|
||||
int QuantityFormat::defaultDenominator = 8;// for 1/8"
|
||||
int QuantityFormat::defaultDenominator = 8; // for 1/8"
|
||||
|
||||
|
||||
QuantityFormat::QuantityFormat()
|
||||
@@ -639,7 +639,7 @@ QString Quantity::getUserString(double& factor, QString& unitString) const
|
||||
return QString::fromUtf8("%1 %2").arg(Ln, unit.getString());
|
||||
}
|
||||
|
||||
}// namespace Base
|
||||
} // namespace Base
|
||||
|
||||
namespace Gui
|
||||
{
|
||||
@@ -820,8 +820,8 @@ public:
|
||||
state = QValidator::Acceptable;
|
||||
}
|
||||
}
|
||||
else if (max == min) {// when max and min is the same the only non-Invalid input is max
|
||||
// (or min)
|
||||
else if (max == min) { // when max and min is the same the only non-Invalid input is
|
||||
// max (or min)
|
||||
state = QValidator::Invalid;
|
||||
}
|
||||
else {
|
||||
@@ -855,7 +855,7 @@ public:
|
||||
double minimum;
|
||||
double singleStep;
|
||||
};
|
||||
}// namespace Gui
|
||||
} // namespace Gui
|
||||
|
||||
QuantitySpinBox::QuantitySpinBox(QWidget* parent)
|
||||
: QAbstractSpinBox(parent)
|
||||
@@ -1153,7 +1153,7 @@ QSize QuantitySpinBox::sizeHint() const
|
||||
w = fm.width(s);
|
||||
#endif
|
||||
|
||||
w += 2;// cursor blinking space
|
||||
w += 2; // cursor blinking space
|
||||
w += iconHeight;
|
||||
|
||||
QStyleOptionSpinBox opt;
|
||||
@@ -1183,7 +1183,7 @@ QSize QuantitySpinBox::minimumSizeHint() const
|
||||
w = fm.width(s);
|
||||
#endif
|
||||
|
||||
w += 2;// cursor blinking space
|
||||
w += 2; // cursor blinking space
|
||||
w += iconHeight;
|
||||
|
||||
QStyleOptionSpinBox opt;
|
||||
@@ -1487,7 +1487,7 @@ UnsignedValidator::~UnsignedValidator()
|
||||
|
||||
QValidator::State UnsignedValidator::validate(QString& input, int&) const
|
||||
{
|
||||
QString stripped;// = input.stripWhiteSpace();
|
||||
QString stripped; // = input.stripWhiteSpace();
|
||||
if (stripped.isEmpty()) {
|
||||
return Intermediate;
|
||||
}
|
||||
@@ -1573,7 +1573,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
}// namespace Gui
|
||||
} // namespace Gui
|
||||
|
||||
// -------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ struct QuantityFormat
|
||||
|
||||
// Default denominator of minimum fractional inch. Only used in certain
|
||||
// schemas.
|
||||
static int defaultDenominator;// i.e 8 for 1/8"
|
||||
static int defaultDenominator; // i.e 8 for 1/8"
|
||||
|
||||
static inline int getDefaultDenominator()
|
||||
{
|
||||
@@ -162,7 +162,7 @@ private:
|
||||
Unit unit;
|
||||
QuantityFormat format;
|
||||
};
|
||||
}// namespace Base
|
||||
} // namespace Base
|
||||
|
||||
Q_DECLARE_METATYPE(Base::Quantity)
|
||||
|
||||
@@ -888,6 +888,6 @@ private:
|
||||
QByteArray m_sPrefName;
|
||||
QByteArray m_sPrefGrp;
|
||||
};
|
||||
}// namespace Gui
|
||||
} // namespace Gui
|
||||
|
||||
#endif// GUI_CUSTOMWIDGETS_H
|
||||
#endif // GUI_CUSTOMWIDGETS_H
|
||||
|
||||
Reference in New Issue
Block a user