mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 21:33:59 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user