Replace 'Event' #define strings

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c3aa1feaab)
r14.1.x
Michele Calgaro 12 months ago
parent 7ec27f89c5
commit 556d90cb57
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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();

@ -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;

@ -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();

@ -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

@ -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 );
}

Loading…
Cancel
Save