Format all C++ and Java code via clang-format

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-08-17 14:32:37 +07:00
parent 9f0290c0ec
commit bfffa1fff4
2169 changed files with 56441 additions and 64188 deletions

View File

@@ -23,7 +23,7 @@ class MyProxyStyle : public ProxyStyle
public:
explicit MyProxyStyle(QStyle * parent) : ProxyStyle(parent) {}
int styleHint(StyleHint hint, const QStyleOption * option, const QWidget * widget,
int styleHint(StyleHint hint, QStyleOption const * option, QWidget const * widget,
QStyleHintReturn * returnData) const override
{
if (hint == SH_Slider_AbsoluteSetButtons)
@@ -33,8 +33,7 @@ public:
};
} // namespace
ScaleSlider::ScaleSlider(Qt::Orientation orient, QWidget * parent)
: QSlider(orient, parent), m_factor(20)
ScaleSlider::ScaleSlider(Qt::Orientation orient, QWidget * parent) : QSlider(orient, parent), m_factor(20)
{
setStyle(new MyProxyStyle(style()));
SetRange(2, scales::GetUpperScale());
@@ -72,6 +71,9 @@ void ScaleSlider::SetPosWithBlockedSignals(double pos)
blockSignals(blocked);
}
void ScaleSlider::SetRange(int low, int up) { setRange(low * m_factor, up * m_factor); }
void ScaleSlider::SetRange(int low, int up)
{
setRange(low * m_factor, up * m_factor);
}
} // namespace common
} // namespace qt