summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 20:43:12 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 20:43:12 +0900
commitb50df900ce9ce1c9ad3b2e6dd25feb5cde644e1d (patch)
tree2dce9f4788251c934ce17c73f2141f979af35181 /kmymoney2/widgets
parent9bb2179ec0b55df8162909ad36a2781f73e5e734 (diff)
downloadkmymoney-b50df900ce9ce1c9ad3b2e6dd25feb5cde644e1d.tar.gz
kmymoney-b50df900ce9ce1c9ad3b2e6dd25feb5cde644e1d.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kmymoney2/widgets')
-rw-r--r--kmymoney2/widgets/kmymoneycompletion.cpp2
-rw-r--r--kmymoney2/widgets/kmymoneyedit.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/kmymoney2/widgets/kmymoneycompletion.cpp b/kmymoney2/widgets/kmymoneycompletion.cpp
index ef763cc..eb818d8 100644
--- a/kmymoney2/widgets/kmymoneycompletion.cpp
+++ b/kmymoney2/widgets/kmymoneycompletion.cpp
@@ -172,7 +172,7 @@ bool kMyMoneyCompletion::eventFilter(TQObject* o, TQEvent* e)
if(o == m_parent || (c && o == c->lineEdit())) {
if(isVisible()) {
if(type == TQEvent::KeyPress) {
- TQKeyEvent* ev = TQT_TQKEYEVENT (e);
+ TQKeyEvent* ev = static_cast<TQKeyEvent*> (e);
TQKeyEvent evt(TQEvent::KeyPress,
Key_Down, 0, ev->state(), TQString(),
ev->isAutoRepeat(), ev->count());
diff --git a/kmymoney2/widgets/kmymoneyedit.cpp b/kmymoney2/widgets/kmymoneyedit.cpp
index 9386813..609037e 100644
--- a/kmymoney2/widgets/kmymoneyedit.cpp
+++ b/kmymoney2/widgets/kmymoneyedit.cpp
@@ -404,7 +404,7 @@ bool kMyMoneyEdit::eventFilter(TQObject * /* o */ , TQEvent *e )
// we want to catch some keys that are usually handled by
// the base class (e.g. '+', '-', etc.)
if(e->type() == TQEvent::KeyPress) {
- TQKeyEvent *k = TQT_TQKEYEVENT (e);
+ TQKeyEvent *k = static_cast<TQKeyEvent*> (e);
rc = true;
switch(k->key()) {