summaryrefslogtreecommitdiffstats
path: root/kexi/widget/utils
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 21:03:28 +0900
commitd7ae9fb514226c126e04cfe4f34800beb9f4ea19 (patch)
tree4d12f786f3541b9ff0225f0ceb2bec0b9268a163 /kexi/widget/utils
parentb727f4b3b1957bec28a350575237b93f8f278cdb (diff)
downloadkoffice-d7ae9fb514226c126e04cfe4f34800beb9f4ea19.tar.gz
koffice-d7ae9fb514226c126e04cfe4f34800beb9f4ea19.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kexi/widget/utils')
-rw-r--r--kexi/widget/utils/kexirecordnavigator.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kexi/widget/utils/kexirecordnavigator.cpp b/kexi/widget/utils/kexirecordnavigator.cpp
index d61c7dc8..334c605a 100644
--- a/kexi/widget/utils/kexirecordnavigator.cpp
+++ b/kexi/widget/utils/kexirecordnavigator.cpp
@@ -196,7 +196,7 @@ bool KexiRecordNavigator::eventFilter( TQObject *o, TQEvent *e )
bool recordEntered = false;
bool ret;
if (e->type()==TQEvent::KeyPress) {
- TQKeyEvent *ke = TQT_TQKEYEVENT(e);
+ TQKeyEvent *ke = static_cast<TQKeyEvent*>(e);
switch (ke->key()) {
case TQt::Key_Escape: {
ke->accept();
@@ -218,9 +218,9 @@ bool KexiRecordNavigator::eventFilter( TQObject *o, TQEvent *e )
}
}
else if (e->type()==TQEvent::FocusOut) {
- if (TQT_TQFOCUSEVENT(e)->reason()!=TQFocusEvent::Tab
- && TQT_TQFOCUSEVENT(e)->reason()!=TQFocusEvent::Backtab
- && TQT_TQFOCUSEVENT(e)->reason()!=TQFocusEvent::Other)
+ if (static_cast<TQFocusEvent*>(e)->reason()!=TQFocusEvent::Tab
+ && static_cast<TQFocusEvent*>(e)->reason()!=TQFocusEvent::Backtab
+ && static_cast<TQFocusEvent*>(e)->reason()!=TQFocusEvent::Other)
recordEntered=true;
ret = false;
}