[graphics/drawy/gsoc2026] src/widgets/tools: Add missing const
Abdelhadi Wael <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit ed583d93ae0a58eb0710f58888e1b6720828d84d by Abdelhadi Wael.
Committed on 23/07/2026 at 10:59.
Pushed by mlaurent into branch 'gsoc2026'.
Add missing const
M +1 -1 src/widgets/tools/texttool.cpp
M +1 -1 src/widgets/tools/texttool.hpp
https://invent.kde.org/graphics/drawy/-/commit/ed583d93ae0a58eb0710f58888e1b6720828d84d
diff --git a/src/widgets/tools/texttool.cpp b/src/widgets/tools/texttool.cpp
index aed8004e..ca4d4092 100644
--- a/src/widgets/tools/texttool.cpp
+++ b/src/widgets/tools/texttool.cpp
@@ -258,7 +258,7 @@ void TextTool::keyPressed(ApplicationContext *context)
context->uiContext()->propertyBar()->updateToolProperties();
}
-void TextTool::processKey(const Event *ev)
+void TextTool::processKey(const Event *ev) const
{
const bool ctrl = ev->modifiers() & Qt::ControlModifier;
const bool shift = ev->modifiers() & Qt::ShiftModifier;
diff --git a/src/widgets/tools/texttool.hpp b/src/widgets/tools/texttool.hpp
index 7689f4ba..245a63d0 100644
--- a/src/widgets/tools/texttool.hpp
+++ b/src/widgets/tools/texttool.hpp
@@ -39,5 +39,5 @@ private:
bool m_doubleClicked{false};
bool m_tripleClicked{false};
- void processKey(const Event *ev);
+ void processKey(const Event *ev) const;
};