summaryrefslogtreecommitdiffstats
path: root/kexi/kexiutils/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/kexiutils/utils.cpp')
-rw-r--r--kexi/kexiutils/utils.cpp8
1 files changed, 4 insertions, 4 deletions
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<TQFocusEvent*>(&fe)->setReason(reason);
TQApplication::sendEvent( widget, &fe );
- TQT_TQFOCUSEVENT(&fe)->resetReason();
+ static_cast<TQFocusEvent*>(&fe)->resetReason();
}
void KexiUtils::unsetFocusWithReason(TQWidget* widget, TQFocusEvent::Reason reason)
{
TQEvent fe( TQEvent::FocusOut );
- TQT_TQFOCUSEVENT(&fe)->setReason(reason);
+ static_cast<TQFocusEvent*>(&fe)->setReason(reason);
TQApplication::sendEvent( widget, &fe );
- TQT_TQFOCUSEVENT(&fe)->resetReason();
+ static_cast<TQFocusEvent*>(&fe)->resetReason();
}
CopyFileResult KexiUtils::copyFile(const TQString& src, const TQString& dest)