1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-17 13:15:06 +00:00

HackStudio: Use new format functions.

This commit is contained in:
asynts 2020-10-08 13:41:36 +02:00 committed by Andreas Kling
parent 3b601cd4bd
commit 7c4fb2b804
23 changed files with 112 additions and 117 deletions

View file

@ -38,7 +38,7 @@ namespace HackStudio {
void CursorTool::on_mousedown(GUI::MouseEvent& event)
{
#ifdef DEBUG_CURSOR_TOOL
dbg() << "CursorTool::on_mousedown";
dbgln("CursorTool::on_mousedown");
#endif
auto& form_widget = m_editor.form_widget();
auto result = form_widget.hit_test(event.position(), GUI::Widget::ShouldRespectGreediness::No);
@ -77,7 +77,7 @@ void CursorTool::on_mousedown(GUI::MouseEvent& event)
void CursorTool::on_mouseup(GUI::MouseEvent& event)
{
#ifdef DEBUG_CURSOR_TOOL
dbg() << "CursorTool::on_mouseup";
dbgln("CursorTool::on_mouseup");
#endif
if (event.button() == GUI::MouseButton::Left) {
auto& form_widget = m_editor.form_widget();
@ -98,7 +98,7 @@ void CursorTool::on_mouseup(GUI::MouseEvent& event)
void CursorTool::on_mousemove(GUI::MouseEvent& event)
{
#ifdef DEBUG_CURSOR_TOOL
dbg() << "CursorTool::on_mousemove";
dbgln("CursorTool::on_mousemove");
#endif
auto& form_widget = m_editor.form_widget();
@ -137,7 +137,7 @@ void CursorTool::on_mousemove(GUI::MouseEvent& event)
void CursorTool::on_keydown(GUI::KeyEvent& event)
{
#ifdef DEBUG_CURSOR_TOOL
dbg() << "CursorTool::on_keydown";
dbgln("CursorTool::on_keydown");
#endif
auto move_selected_widgets_by = [this](int x, int y) {