summaryrefslogtreecommitdiffstats
path: root/chalk/ui
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-30 20:43:20 +0900
committerMichele Calgaro <[email protected]>2023-11-30 23:46:05 +0900
commit5761876d3a71e9b3c5a93b5b535b071d2240b08e (patch)
tree0ea383b7af28380ecec4a4059b1ed0bdcdbe8338 /chalk/ui
parent2891d3c2d54dea1e2dd2a6702ee209b6f01f73f4 (diff)
downloadkoffice-5761876d3a71e9b3c5a93b5b535b071d2240b08e.tar.gz
koffice-5761876d3a71e9b3c5a93b5b535b071d2240b08e.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit d7ae9fb514226c126e04cfe4f34800beb9f4ea19)
Diffstat (limited to 'chalk/ui')
-rw-r--r--chalk/ui/kis_view.cpp2
-rw-r--r--chalk/ui/kobirdeyepanel.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/chalk/ui/kis_view.cpp b/chalk/ui/kis_view.cpp
index 2e123f5d..3a810538 100644
--- a/chalk/ui/kis_view.cpp
+++ b/chalk/ui/kis_view.cpp
@@ -3449,7 +3449,7 @@ bool KisView::eventFilter(TQObject *o, TQEvent *e)
case TQEvent::TabletPress:
case TQEvent::TabletRelease:
{
- TQTabletEvent *te = TQT_TQTABLETEVENT(e);
+ TQTabletEvent *te = static_cast<TQTabletEvent*>(e);
KisInputDevice device;
switch (te->device()) {
diff --git a/chalk/ui/kobirdeyepanel.cpp b/chalk/ui/kobirdeyepanel.cpp
index 5cc9799e..b096725e 100644
--- a/chalk/ui/kobirdeyepanel.cpp
+++ b/chalk/ui/kobirdeyepanel.cpp
@@ -308,11 +308,11 @@ void KoBirdEyePanel::updateVisibleArea()
bool KoBirdEyePanel::eventFilter(TQObject* o, TQEvent* ev)
{
if (o == m_page->view && ev->type() == TQEvent::Resize) {
- resizeViewEvent(TQT_TQRESIZEEVENT(ev)->size());
+ resizeViewEvent(static_cast<TQResizeEvent*>(ev)->size());
}
if (o == m_page->view && ev->type() == TQEvent::Paint) {
- paintViewEvent(TQT_TQPAINTEVENT(ev));
+ paintViewEvent(static_cast<TQPaintEvent*>(ev));
}
if (o == m_page->view && ev->type() == TQEvent::MouseMove) {