Replace 'Event' #define strings

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/59/head
Michele Calgaro 10 months ago
parent 1304109bee
commit 7ef70d6552
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -341,7 +341,7 @@ bool PropertyPanel::eventFilter( TQObject *o, TQEvent *e )
{ {
if( port && !constantValueEdit->hasFocus() && (e->type() == TQEvent::KeyPress) ) { if( port && !constantValueEdit->hasFocus() && (e->type() == TQEvent::KeyPress) ) {
// kdDebug() << TQString(" ..is KeyPress") << endl; // kdDebug() << TQString(" ..is KeyPress") << endl;
TQString entered = TQT_TQKEYEVENT(e)->text(); TQString entered = static_cast<TQKeyEvent*>(e)->text();
bool goodString = entered.length() > 0; bool goodString = entered.length() > 0;
// kdDebug() << TQString("pressed '%1'").arg(entered) << endl; // kdDebug() << TQString("pressed '%1'").arg(entered) << endl;

@ -1116,7 +1116,7 @@ bool Playlist::eventFilter(TQObject *watched, TQEvent *e)
switch(e->type()) { switch(e->type()) {
case TQEvent::MouseMove: case TQEvent::MouseMove:
{ {
if((TQT_TQMOUSEEVENT(e)->state() & TQt::LeftButton) == TQt::LeftButton && if((static_cast<TQMouseEvent*>(e)->state() & TQt::LeftButton) == TQt::LeftButton &&
!action<TDEToggleAction>("resizeColumnsManually")->isChecked()) !action<TDEToggleAction>("resizeColumnsManually")->isChecked())
{ {
m_columnWidthModeChanged = true; m_columnWidthModeChanged = true;
@ -1129,7 +1129,7 @@ bool Playlist::eventFilter(TQObject *watched, TQEvent *e)
} }
case TQEvent::MouseButtonPress: case TQEvent::MouseButtonPress:
{ {
if(TQT_TQMOUSEEVENT(e)->button() == TQt::RightButton) if(static_cast<TQMouseEvent*>(e)->button() == TQt::RightButton)
m_headerMenu->popup(TQCursor::pos()); m_headerMenu->popup(TQCursor::pos());
break; break;

@ -139,7 +139,7 @@ bool SearchLine::eventFilter(TQObject *watched, TQEvent *e)
if(watched != m_lineEdit || e->type() != TQEvent::KeyPress) if(watched != m_lineEdit || e->type() != TQEvent::KeyPress)
return TQHBox::eventFilter(watched, e); return TQHBox::eventFilter(watched, e);
TQKeyEvent *key = TQT_TQKEYEVENT(e); TQKeyEvent *key = static_cast<TQKeyEvent*>(e);
if(key->key() == TQt::Key_Down) if(key->key() == TQt::Key_Down)
emit signalDownPressed(); emit signalDownPressed();

@ -175,7 +175,7 @@ bool StatusLabel::eventFilter(TQObject *o, TQEvent *e)
if(!o || !e) if(!o || !e)
return false; return false;
TQMouseEvent *mouseEvent = TQT_TQMOUSEEVENT(e); TQMouseEvent *mouseEvent = static_cast<TQMouseEvent*>(e);
if(e->type() == TQEvent::MouseButtonRelease && if(e->type() == TQEvent::MouseButtonRelease &&
mouseEvent->button() == TQt::LeftButton) mouseEvent->button() == TQt::LeftButton)
{ {

@ -768,7 +768,7 @@ void TagEditor::showEvent(TQShowEvent *e)
bool TagEditor::eventFilter(TQObject *watched, TQEvent *e) bool TagEditor::eventFilter(TQObject *watched, TQEvent *e)
{ {
TQKeyEvent *ke = TQT_TQKEYEVENT(e); TQKeyEvent *ke = static_cast<TQKeyEvent*>(e);
if(watched->inherits("TQSpinBox") && e->type() == TQEvent::KeyRelease && ke->state() == 0) if(watched->inherits("TQSpinBox") && e->type() == TQEvent::KeyRelease && ke->state() == 0)
slotDataChanged(); slotDataChanged();

@ -105,7 +105,7 @@ void ViewMode::paintCell(PlaylistBox::Item *item,
bool ViewMode::eventFilter(TQObject *watched, TQEvent *e) bool ViewMode::eventFilter(TQObject *watched, TQEvent *e)
{ {
if(m_visible && watched == m_playlistBox->viewport() && e->type() == TQEvent::Resize) { if(m_visible && watched == m_playlistBox->viewport() && e->type() == TQEvent::Resize) {
TQResizeEvent *re = TQT_TQRESIZEEVENT(e); TQResizeEvent *re = static_cast<TQResizeEvent*>(e);
if(re->size().width() != re->oldSize().width()) if(re->size().width() != re->oldSize().width())
m_needsRefresh = true; m_needsRefresh = true;
} }

@ -194,7 +194,7 @@ void MDWEnum::setDisabled( bool value ) {
bool MDWEnum::eventFilter( TQObject* obj, TQEvent* e ) bool MDWEnum::eventFilter( TQObject* obj, TQEvent* e )
{ {
if (e->type() == TQEvent::MouseButtonPress) { if (e->type() == TQEvent::MouseButtonPress) {
TQMouseEvent *qme = TQT_TQMOUSEEVENT(e); TQMouseEvent *qme = static_cast<TQMouseEvent*>(e);
if (qme->button() == TQt::RightButton) { if (qme->button() == TQt::RightButton) {
showContextMenu(); showContextMenu();
return true; return true;

@ -934,7 +934,7 @@ TQSize MDWSlider::sizeHint() const {
bool MDWSlider::eventFilter( TQObject* obj, TQEvent* e ) bool MDWSlider::eventFilter( TQObject* obj, TQEvent* e )
{ {
if (e->type() == TQEvent::MouseButtonPress) { if (e->type() == TQEvent::MouseButtonPress) {
TQMouseEvent *qme = TQT_TQMOUSEEVENT(e); TQMouseEvent *qme = static_cast<TQMouseEvent*>(e);
if (qme->button() == TQt::RightButton) { if (qme->button() == TQt::RightButton) {
showContextMenu(); showContextMenu();
return true; return true;
@ -942,7 +942,7 @@ bool MDWSlider::eventFilter( TQObject* obj, TQEvent* e )
} }
// Attention: We don't filter WheelEvents for KSmallSlider, because it handles WheelEvents itself // Attention: We don't filter WheelEvents for KSmallSlider, because it handles WheelEvents itself
else if ( (e->type() == TQEvent::Wheel) && !obj->isA("KSmallSlider") ) { else if ( (e->type() == TQEvent::Wheel) && !obj->isA("KSmallSlider") ) {
TQWheelEvent *qwe = TQT_TQWHEELEVENT(e); TQWheelEvent *qwe = static_cast<TQWheelEvent*>(e);
if (qwe->delta() > 0) { if (qwe->delta() > 0) {
increaseVolume(); increaseVolume();
} }

@ -219,7 +219,7 @@ void MDWSwitch::setDisabled( bool value ) {
bool MDWSwitch::eventFilter( TQObject* obj, TQEvent* e ) bool MDWSwitch::eventFilter( TQObject* obj, TQEvent* e )
{ {
if (e->type() == TQEvent::MouseButtonPress) { if (e->type() == TQEvent::MouseButtonPress) {
TQMouseEvent *qme = TQT_TQMOUSEEVENT(e); TQMouseEvent *qme = static_cast<TQMouseEvent*>(e);
if (qme->button() == TQt::RightButton) { if (qme->button() == TQt::RightButton) {
showContextMenu(); showContextMenu();
return true; return true;

@ -248,7 +248,7 @@ bool Excellent::eventFilter(TQObject *o, TQEvent *e)
{ {
if (e->type() == TQEvent::Wheel) if (e->type() == TQEvent::Wheel)
{ {
wheelEvent(TQT_TQWHEELEVENT(e)); wheelEvent(static_cast<TQWheelEvent*>(e));
return true; return true;
} }
return TQWidget::eventFilter(o, e); return TQWidget::eventFilter(o, e);

@ -281,15 +281,15 @@ void MilkChocolate::changeLoopType(int t)
bool MilkChocolate::eventFilter(TQObject *o, TQEvent *e) bool MilkChocolate::eventFilter(TQObject *o, TQEvent *e)
{ {
if ((e->type() == TQEvent::MouseButtonRelease) if ((e->type() == TQEvent::MouseButtonRelease)
&& ((TQT_TQMOUSEEVENT(e))->button()==TQt::RightButton)) && ((static_cast<TQMouseEvent*>(e))->button()==TQt::RightButton))
{ {
mouseReleaseEvent(TQT_TQMOUSEEVENT(e)); mouseReleaseEvent(static_cast<TQMouseEvent*>(e));
return true; return true;
} }
if (e->type() == TQEvent::Wheel) if (e->type() == TQEvent::Wheel)
{ {
wheelEvent(TQT_TQWHEELEVENT(e)); wheelEvent(static_cast<TQWheelEvent*>(e));
return true; return true;
} }
return TQWidget::eventFilter(o, e); return TQWidget::eventFilter(o, e);

Loading…
Cancel
Save