summaryrefslogtreecommitdiff
path: root/Userland/Applications/FontEditor
diff options
context:
space:
mode:
authorFiliph Sandström <filiph.sandstrom@filfatstudios.com>2021-10-27 13:20:27 +0200
committerIdan Horowitz <idan.horowitz@gmail.com>2021-10-27 22:05:58 +0300
commitd6a072630268eeccee8ce1da0c13fd4a169caa8c (patch)
tree169e8d0ec79b6c6918a0425986d9c09d9a0b30c7 /Userland/Applications/FontEditor
parenta6ccf6659a706eb985cf5e62cd8e8db05ab18ab9 (diff)
downloadserenity-d6a072630268eeccee8ce1da0c13fd4a169caa8c.zip
Everywhere: Rename left/right-click to primary/secondary
This resolves #10641.
Diffstat (limited to 'Userland/Applications/FontEditor')
-rw-r--r--Userland/Applications/FontEditor/GlyphEditorWidget.cpp6
-rw-r--r--Userland/Applications/FontEditor/NewFontDialog.cpp6
2 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Applications/FontEditor/GlyphEditorWidget.cpp b/Userland/Applications/FontEditor/GlyphEditorWidget.cpp
index 0471d6582c..a36b3586bb 100644
--- a/Userland/Applications/FontEditor/GlyphEditorWidget.cpp
+++ b/Userland/Applications/FontEditor/GlyphEditorWidget.cpp
@@ -195,7 +195,7 @@ void GlyphEditorWidget::mousemove_event(GUI::MouseEvent& event)
{
if (!m_is_clicking_valid_cell)
return;
- if (!(event.buttons() & (GUI::MouseButton::Left | GUI::MouseButton::Right)))
+ if (!(event.buttons() & (GUI::MouseButton::Primary | GUI::MouseButton::Secondary)))
return;
if (mode() == Paint)
draw_at_mouse(event);
@@ -213,8 +213,8 @@ void GlyphEditorWidget::enter_event(Core::Event&)
void GlyphEditorWidget::draw_at_mouse(const GUI::MouseEvent& event)
{
- bool set = event.buttons() & GUI::MouseButton::Left;
- bool unset = event.buttons() & GUI::MouseButton::Right;
+ bool set = event.buttons() & GUI::MouseButton::Primary;
+ bool unset = event.buttons() & GUI::MouseButton::Secondary;
if (!(set ^ unset))
return;
int x = (event.x() - 1) / m_scale;
diff --git a/Userland/Applications/FontEditor/NewFontDialog.cpp b/Userland/Applications/FontEditor/NewFontDialog.cpp
index bc3a393610..28be069c04 100644
--- a/Userland/Applications/FontEditor/NewFontDialog.cpp
+++ b/Userland/Applications/FontEditor/NewFontDialog.cpp
@@ -93,13 +93,13 @@ private:
}
virtual void mousemove_event(MouseEvent& event) override
{
- if (event.buttons() & (GUI::MouseButton::Left | GUI::MouseButton::Right))
+ if (event.buttons() & (GUI::MouseButton::Primary | GUI::MouseButton::Secondary))
draw_at_mouse(event);
}
void draw_at_mouse(const MouseEvent& event)
{
- bool set = event.buttons() & MouseButton::Left;
- bool unset = event.buttons() & MouseButton::Right;
+ bool set = event.buttons() & MouseButton::Primary;
+ bool unset = event.buttons() & MouseButton::Secondary;
if (!(set ^ unset))
return;
int x = (event.x() - 1) / m_scale;