summaryrefslogtreecommitdiffstats
path: root/kuickshow
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 21:30:44 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 21:30:44 +0900
commitc3aa1feaab76f93138ae16090af4b2acb4dcc147 (patch)
tree05d6bc6077035d1c03f32bc104e1dd8db01d9145 /kuickshow
parent6f8204d5e92e1524474668e99f241c4740e7020c (diff)
downloadtdegraphics-c3aa1feaab76f93138ae16090af4b2acb4dcc147.tar.gz
tdegraphics-c3aa1feaab76f93138ae16090af4b2acb4dcc147.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kuickshow')
-rw-r--r--kuickshow/src/aboutwidget.cpp2
-rw-r--r--kuickshow/src/filewidget.cpp2
-rw-r--r--kuickshow/src/kuickshow.cpp6
3 files changed, 5 insertions, 5 deletions
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