From d7ae9fb514226c126e04cfe4f34800beb9f4ea19 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 30 Nov 2023 20:43:20 +0900 Subject: Replace 'Event' #define strings Signed-off-by: Michele Calgaro --- kexi/kexiutils/utils.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kexi/kexiutils') diff --git a/kexi/kexiutils/utils.cpp b/kexi/kexiutils/utils.cpp index ed62c07c..4a0d5489 100644 --- a/kexi/kexiutils/utils.cpp +++ b/kexi/kexiutils/utils.cpp @@ -375,17 +375,17 @@ void* KexiUtils::stringToPtrInternal(const TQString& str, uint size) void KexiUtils::setFocusWithReason(TQWidget* widget, TQFocusEvent::Reason reason) { TQEvent fe( TQEvent::FocusIn ); - TQT_TQFOCUSEVENT(&fe)->setReason(reason); + static_cast(&fe)->setReason(reason); TQApplication::sendEvent( widget, &fe ); - TQT_TQFOCUSEVENT(&fe)->resetReason(); + static_cast(&fe)->resetReason(); } void KexiUtils::unsetFocusWithReason(TQWidget* widget, TQFocusEvent::Reason reason) { TQEvent fe( TQEvent::FocusOut ); - TQT_TQFOCUSEVENT(&fe)->setReason(reason); + static_cast(&fe)->setReason(reason); TQApplication::sendEvent( widget, &fe ); - TQT_TQFOCUSEVENT(&fe)->resetReason(); + static_cast(&fe)->resetReason(); } CopyFileResult KexiUtils::copyFile(const TQString& src, const TQString& dest) -- cgit v1.2.1