Commit 92053aa9 authored by Jabier Arraiza's avatar Jabier Arraiza

fix coding style

parent 4c0e989a
Pipeline #66168141 passed with stages
in 8 minutes and 17 seconds
......@@ -155,10 +155,7 @@ public:
}
};
bool on_scroll_event(GdkEventScroll* event) override
{
return false;
}
bool on_scroll_event(GdkEventScroll *event) override { return false; }
void set_active_by_key(const Glib::ustring& key) {
setProgrammatically = true;
......
......@@ -85,7 +85,7 @@ bool SpinButton::on_scroll_event(GdkEventScroll *event)
} else if (event->direction == GDK_SCROLL_DOWN) {
change = -step;
} else if (event->direction == GDK_SCROLL_SMOOTH) {
double delta_y_clamped = CLAMP(event->delta_y, -1 , 1); // values > 1 result in excessive changes
double delta_y_clamped = CLAMP(event->delta_y, -1, 1); // values > 1 result in excessive changes
change = step * -delta_y_clamped;
} else {
return false;
......
......@@ -82,9 +82,9 @@ protected:
/**
* When scroll is done.
* @retval false continue with default handler.
* @retval true don't call default handler.
* @retval true don't call default handler.
*/
bool on_scroll_event(GdkEventScroll* event) override;
bool on_scroll_event(GdkEventScroll *event) override;
/**
* Handle specific keypress events, like Ctrl+Z.
*
......
......@@ -134,10 +134,7 @@ bool UnitMenu::isRadial() const
return getUnitType() == UNIT_TYPE_RADIAL;
}
bool UnitMenu::on_scroll_event(GdkEventScroll* event)
{
return false;
}
bool UnitMenu::on_scroll_event(GdkEventScroll *event) { return false; }
} // namespace Widget
} // namespace UI
......
......@@ -125,7 +125,7 @@ protected:
/**
* block scroll from widget if is inside a scrolled window.
*/
bool on_scroll_event(GdkEventScroll* event) override;
bool on_scroll_event(GdkEventScroll *event) override;
};
} // namespace Widget
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment