summaryrefslogtreecommitdiffstats
path: root/lib/koproperty/editors/pixmapedit.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 20:43:20 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 23:46:05 +0900
commit5761876d3a71e9b3c5a93b5b535b071d2240b08e (patch)
tree0ea383b7af28380ecec4a4059b1ed0bdcdbe8338 /lib/koproperty/editors/pixmapedit.cpp
parent2891d3c2d54dea1e2dd2a6702ee209b6f01f73f4 (diff)
downloadkoffice-5761876d.tar.gz
koffice-5761876d.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit d7ae9fb514226c126e04cfe4f34800beb9f4ea19)
Diffstat (limited to 'lib/koproperty/editors/pixmapedit.cpp')
-rw-r--r--lib/koproperty/editors/pixmapedit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/koproperty/editors/pixmapedit.cpp b/lib/koproperty/editors/pixmapedit.cpp
index b6454a96c..070de038b 100644
--- a/lib/koproperty/editors/pixmapedit.cpp
+++ b/lib/koproperty/editors/pixmapedit.cpp
@@ -206,7 +206,7 @@ bool
PixmapEdit::eventFilter(TQObject *o, TQEvent *ev)
{
if(o == m_edit) {
- if(ev->type() == TQEvent::MouseButtonPress && TQT_TQMOUSEEVENT(ev)->button()==TQt::LeftButton) {
+ if(ev->type() == TQEvent::MouseButtonPress && static_cast<TQMouseEvent*>(ev)->button()==TQt::LeftButton) {
if(m_previewPixmap.height() <= m_edit->height()
&& m_previewPixmap.width() <= m_edit->width())
return false;
@@ -227,7 +227,7 @@ PixmapEdit::eventFilter(TQObject *o, TQEvent *ev)
m_popup->hide();
}
else if(ev->type() == TQEvent::KeyPress) {
- TQKeyEvent* e = TQT_TQKEYEVENT(ev);
+ TQKeyEvent* e = static_cast<TQKeyEvent*>(ev);
if((e->key() == Key_Enter) || (e->key()== Key_Space) || (e->key() == Key_Return)) {
m_button->animateClick();
return true;