summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-30 21:30:44 +0900
committerMichele Calgaro <[email protected]>2023-12-02 22:45:35 +0900
commit556d90cb570e370385fcf5515e1a6e0532822d82 (patch)
tree679cdf46e3b80698af2cddef09f74079aec59738
parent7ec27f89c574376989e3199731debf8a01cd2919 (diff)
downloadtdegraphics-556d90cb570e370385fcf5515e1a6e0532822d82.tar.gz
tdegraphics-556d90cb570e370385fcf5515e1a6e0532822d82.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit c3aa1feaab76f93138ae16090af4b2acb4dcc147)
-rw-r--r--kooka/ksaneocr.cpp2
-rw-r--r--kuickshow/src/aboutwidget.cpp2
-rw-r--r--kuickshow/src/filewidget.cpp2
-rw-r--r--kuickshow/src/kuickshow.cpp6
-rw-r--r--kview/kviewcanvas/kimagecanvas.cpp2
5 files changed, 7 insertions, 7 deletions
diff --git a/kooka/ksaneocr.cpp b/kooka/ksaneocr.cpp
index a0a3de38..672989b1 100644
--- a/kooka/ksaneocr.cpp
+++ b/kooka/ksaneocr.cpp
@@ -1127,7 +1127,7 @@ bool KSANEOCR::eventFilter( TQObject *object, TQEvent *event )
{
if( event->type() == TQEvent::MouseButtonDblClick )
{
- TQMouseEvent *mev = TQT_TQMOUSEEVENT(event);
+ TQMouseEvent *mev = static_cast<TQMouseEvent*>(event);
int x = mev->x();
int y = mev->y();
diff --git a/kuickshow/src/aboutwidget.cpp b/kuickshow/src/aboutwidget.cpp
index d45734ba..7fa5e323 100644
--- a/kuickshow/src/aboutwidget.cpp
+++ b/kuickshow/src/aboutwidget.cpp
@@ -83,7 +83,7 @@ AboutWidget::~AboutWidget()
bool AboutWidget::eventFilter( TQObject *o, TQEvent *e )
{
if ( e->type() == TQEvent::MouseButtonPress ) {
- TQMouseEvent *ev = TQT_TQMOUSEEVENT( e );
+ TQMouseEvent *ev = static_cast<TQMouseEvent*>( e );
if ( !m_homepage->geometry().contains( ev->pos() ) ) {
deleteLater();
return true;
diff --git a/kuickshow/src/filewidget.cpp b/kuickshow/src/filewidget.cpp
index 61c75118..379abd84 100644
--- a/kuickshow/src/filewidget.cpp
+++ b/kuickshow/src/filewidget.cpp
@@ -179,7 +179,7 @@ void FileWidget::findCompletion( const TQString& text )
bool FileWidget::eventFilter( TQObject *o, TQEvent *e )
{
if ( e->type() == TQEvent::KeyPress ) {
- TQKeyEvent *k = TQT_TQKEYEVENT( e );
+ TQKeyEvent *k = static_cast<TQKeyEvent*>( e );
if ( (k->state() & (ControlButton | AltButton)) == 0 ) {
int key = k->key();
diff --git a/kuickshow/src/kuickshow.cpp b/kuickshow/src/kuickshow.cpp
index 091e2964..7023eb84 100644
--- a/kuickshow/src/kuickshow.cpp
+++ b/kuickshow/src/kuickshow.cpp
@@ -880,7 +880,7 @@ bool KuickShow::eventFilter( TQObject *o, TQEvent *e )
int eventType = e->type();
TQKeyEvent *k = 0L;
if ( eventType == TQEvent::KeyPress )
- k = TQT_TQKEYEVENT( e );
+ k = static_cast<TQKeyEvent*>( e );
if ( k ) {
if ( TDEStdAccel::quit().contains( KKey( k ) ) ) {
@@ -1036,7 +1036,7 @@ bool KuickShow::eventFilter( TQObject *o, TQEvent *e )
// and shows browser when last window closed via doubleclick
else if ( eventType == TQEvent::MouseButtonDblClick )
{
- TQMouseEvent *ev = TQT_TQMOUSEEVENT( e );
+ TQMouseEvent *ev = static_cast<TQMouseEvent*>( e );
if ( ev->button() == TQt::LeftButton )
{
if ( s_viewers.count() == 1 )
@@ -1300,7 +1300,7 @@ void KuickShow::slotReplayEvent()
DelayedRepeatEvent *e = m_delayedRepeatItem;
m_delayedRepeatItem = 0L; // otherwise, eventFilter aborts
- eventFilter( TQT_TQOBJECT(e->viewer), TQT_TQEVENT(e->event) );
+ eventFilter( TQT_TQOBJECT(e->viewer), static_cast<TQEvent*>(e->event) );
delete e;
// ### WORKAROUND for TQIconView bug in TQt <= 3.0.3 at least
diff --git a/kview/kviewcanvas/kimagecanvas.cpp b/kview/kviewcanvas/kimagecanvas.cpp
index 7a317d9c..e65f0302 100644
--- a/kview/kviewcanvas/kimagecanvas.cpp
+++ b/kview/kviewcanvas/kimagecanvas.cpp
@@ -327,7 +327,7 @@ TQString KImageCanvas::blendEffectDescription( unsigned int idx ) const
bool KImageCanvas::eventFilter( TQObject * obj, TQEvent * ev )
{
if( ( obj == m_client || obj == m_oldClient ) && ev->type() == TQEvent::MouseMove )
- mouseMoveEvent( TQT_TQMOUSEEVENT( ev ) );
+ mouseMoveEvent( static_cast<TQMouseEvent*>( ev ) );
return TQScrollView::eventFilter( obj, ev );
}