Replace 'Event' #define strings

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/35/head
Michele Calgaro 6 months ago
parent 987871f05f
commit 8d72e4c19c
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1015,7 +1015,7 @@ void K3bListView::slotEditorButtonClicked( K3bListViewItem* item, int col )
bool K3bListView::eventFilter( TQObject* o, TQEvent* e ) bool K3bListView::eventFilter( TQObject* o, TQEvent* e )
{ {
if( e->type() == TQEvent::KeyPress ) { if( e->type() == TQEvent::KeyPress ) {
TQKeyEvent* ke = TQT_TQKEYEVENT(e); TQKeyEvent* ke = static_cast<TQKeyEvent*>(e);
if( ke->key() == Key_Tab ) { if( ke->key() == Key_Tab ) {
if( o == m_editorLineEdit || if( o == m_editorLineEdit ||
o == d->msfEditLineEdit || o == d->msfEditLineEdit ||
@ -1097,7 +1097,7 @@ bool K3bListView::eventFilter( TQObject* o, TQEvent* e )
// first let's grab the focus // first let's grab the focus
viewport()->setFocus(); viewport()->setFocus();
TQMouseEvent* me = TQT_TQMOUSEEVENT( e ); TQMouseEvent* me = static_cast<TQMouseEvent*>( e );
TQListViewItem* item = itemAt( me->pos() ); TQListViewItem* item = itemAt( me->pos() );
int col = header()->sectionAt( me->pos().x() ); int col = header()->sectionAt( me->pos().x() );
if( K3bCheckListViewItem* ci = dynamic_cast<K3bCheckListViewItem*>( item ) ) { if( K3bCheckListViewItem* ci = dynamic_cast<K3bCheckListViewItem*>( item ) ) {

@ -99,12 +99,12 @@ bool K3bPushButton::eventFilter( TQObject* o, TQEvent* ev )
// is moved by a small distance. // is moved by a small distance.
if( popup() ) { if( popup() ) {
if( ev->type() == TQEvent::MouseButtonPress ) { if( ev->type() == TQEvent::MouseButtonPress ) {
TQMouseEvent* mev = TQT_TQMOUSEEVENT(ev); TQMouseEvent* mev = static_cast<TQMouseEvent*>(ev);
d->mousePressPos = mev->pos(); d->mousePressPos = mev->pos();
d->popupTimer->start( TQApplication::startDragTime() ); d->popupTimer->start( TQApplication::startDragTime() );
} }
else if( ev->type() == TQEvent::MouseMove ) { else if( ev->type() == TQEvent::MouseMove ) {
TQMouseEvent* mev = TQT_TQMOUSEEVENT(ev); TQMouseEvent* mev = static_cast<TQMouseEvent*>(ev);
if( ( mev->pos() - d->mousePressPos).manhattanLength() > TDEGlobalSettings::dndEventDelay() ) { if( ( mev->pos() - d->mousePressPos).manhattanLength() > TDEGlobalSettings::dndEventDelay() ) {
d->popupTimer->stop(); d->popupTimer->stop();
slotDelayedPopup(); slotDelayedPopup();

@ -83,7 +83,7 @@ bool K3bToolButton::eventFilter( TQObject* o, TQEvent* ev )
// is moved by a small distance. // is moved by a small distance.
if( TQToolButton::popup() ) { if( TQToolButton::popup() ) {
if( ev->type() == TQEvent::MouseButtonPress ) { if( ev->type() == TQEvent::MouseButtonPress ) {
TQMouseEvent* mev = TQT_TQMOUSEEVENT(ev); TQMouseEvent* mev = static_cast<TQMouseEvent*>(ev);
if( d->instantMenu ) { if( d->instantMenu ) {
setDown(true); setDown(true);
@ -95,7 +95,7 @@ bool K3bToolButton::eventFilter( TQObject* o, TQEvent* ev )
} }
} }
else if( ev->type() == TQEvent::MouseMove ) { else if( ev->type() == TQEvent::MouseMove ) {
TQMouseEvent* mev = TQT_TQMOUSEEVENT(ev); TQMouseEvent* mev = static_cast<TQMouseEvent*>(ev);
if( !d->instantMenu && if( !d->instantMenu &&
( mev->pos() - d->mousePressPos).manhattanLength() > TDEGlobalSettings::dndEventDelay() ) { ( mev->pos() - d->mousePressPos).manhattanLength() > TDEGlobalSettings::dndEventDelay() ) {
openPopup(); openPopup();

@ -176,7 +176,7 @@ bool K3bProjectTabWidget::eventFilter( TQObject* o, TQEvent* e )
{ {
if( o == tabBar() ) { if( o == tabBar() ) {
if( e->type() == TQEvent::MouseButtonPress ) { if( e->type() == TQEvent::MouseButtonPress ) {
TQMouseEvent* me = TQT_TQMOUSEEVENT(e); TQMouseEvent* me = static_cast<TQMouseEvent*>(e);
if( me->button() == TQt::RightButton ) { if( me->button() == TQt::RightButton ) {
if( projectAt( me->pos() ) ) { if( projectAt( me->pos() ) ) {
// we need change the tab because the actions work on the current tab // we need change the tab because the actions work on the current tab

@ -164,11 +164,11 @@ bool K3bAudioTrackSplitDialog::eventFilter( TQObject* o, TQEvent* e )
{ {
if( o == m_editorWidget ) { if( o == m_editorWidget ) {
if( e->type() == TQEvent::MouseButtonDblClick ) { if( e->type() == TQEvent::MouseButtonDblClick ) {
TQMouseEvent* me = TQT_TQMOUSEEVENT( e ); TQMouseEvent* me = static_cast<TQMouseEvent*>( e );
splitAt( me->pos() ); splitAt( me->pos() );
} }
else if( e->type() == TQEvent::ContextMenu ) { else if( e->type() == TQEvent::ContextMenu ) {
TQContextMenuEvent* ce = TQT_TQCONTEXTMENUEVENT( e ); TQContextMenuEvent* ce = static_cast<TQContextMenuEvent*>( e );
ce->consume(); ce->consume();
m_lastClickPosition = ce->pos(); m_lastClickPosition = ce->pos();
if( m_editorWidget->findRange( ce->pos().x() ) > 0 ) if( m_editorWidget->findRange( ce->pos().x() ) > 0 )

Loading…
Cancel
Save