summaryrefslogtreecommitdiffstats
path: root/tdecore
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 21:30:52 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-02 22:49:42 +0900
commitd8d8319b3dddc86303699f242be2f1a36206da8e (patch)
tree4d8df38004b23ec50344a7126746bbb3453994a5 /tdecore
parent3a837ecf257dc334d65818d456d5a6bd6a8b98ef (diff)
downloadtdelibs-d8d8319b3dddc86303699f242be2f1a36206da8e.tar.gz
tdelibs-d8d8319b3dddc86303699f242be2f1a36206da8e.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit f22a9c72dda24871973033123039639af6577eaa)
Diffstat (limited to 'tdecore')
-rw-r--r--tdecore/kcheckaccelerators.cpp4
-rw-r--r--tdecore/tdeapplication.cpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/tdecore/kcheckaccelerators.cpp b/tdecore/kcheckaccelerators.cpp
index 306591e67..b71084243 100644
--- a/tdecore/kcheckaccelerators.cpp
+++ b/tdecore/kcheckaccelerators.cpp
@@ -99,11 +99,11 @@ bool KCheckAccelerators::eventFilter( TQObject * , TQEvent * e)
switch ( e->type() ) { // just simplify debuggin
case TQEvent::Accel:
- if ( key && (TQT_TQKEYEVENT(e)->key() == key) ) {
+ if ( key && (static_cast<TQKeyEvent*>(e)->key() == key) ) {
block = true;
checkAccelerators( false );
block = false;
- TQT_TQKEYEVENT(e)->accept();
+ static_cast<TQKeyEvent*>(e)->accept();
return true;
}
break;
diff --git a/tdecore/tdeapplication.cpp b/tdecore/tdeapplication.cpp
index de4ab2afc..fd1e04c32 100644
--- a/tdecore/tdeapplication.cpp
+++ b/tdecore/tdeapplication.cpp
@@ -557,7 +557,7 @@ bool TDEApplication::notify(TQObject *receiver, TQEvent *event)
// Indicate that the accelerator has been overridden.
if (t == TQEvent::AccelOverride)
{
- TQT_TQKEYEVENT(event)->accept();
+ static_cast<TQKeyEvent*>(event)->accept();
return true;
}
else
@@ -571,7 +571,7 @@ bool TDEApplication::notify(TQObject *receiver, TQEvent *event)
if (edit)
{
// We have a keypress for a lineedit...
- TQKeyEvent *kevent = TQT_TQKEYEVENT(event);
+ TQKeyEvent *kevent = static_cast<TQKeyEvent*>(event);
KKey key(kevent);
if (_selectAll.contains(key))
{
@@ -609,7 +609,7 @@ bool TDEApplication::notify(TQObject *receiver, TQEvent *event)
if (medit)
{
// We have a keypress for a multilineedit...
- TQKeyEvent *kevent = TQT_TQKEYEVENT(event);
+ TQKeyEvent *kevent = static_cast<TQKeyEvent*>(event);
if (_selectAll.contains(KKey(kevent)))
{
if (t == TQEvent::KeyPress)
@@ -628,7 +628,7 @@ bool TDEApplication::notify(TQObject *receiver, TQEvent *event)
{
TQWidget* w = TQT_TQWIDGET( receiver );
#if defined Q_WS_X11
- if( w->isTopLevel() && !startupId().isEmpty() && !TQT_TQSHOWEVENT(event)->spontaneous()) // TODO better done using window group leader?
+ if( w->isTopLevel() && !startupId().isEmpty() && !static_cast<TQShowEvent*>(event)->spontaneous()) // TODO better done using window group leader?
TDEStartupInfo::setWindowStartupId( w->winId(), startupId());
#endif
if( w->isTopLevel() && !w->testWFlags( WX11BypassWM ) && !w->isPopup() && !event->spontaneous())