summaryrefslogtreecommitdiffstats
path: root/tdeui/tdeactioncollection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeui/tdeactioncollection.cpp')
-rw-r--r--tdeui/tdeactioncollection.cpp31
1 files changed, 14 insertions, 17 deletions
diff --git a/tdeui/tdeactioncollection.cpp b/tdeui/tdeactioncollection.cpp
index 16104e242..7f4fe0191 100644
--- a/tdeui/tdeactioncollection.cpp
+++ b/tdeui/tdeactioncollection.cpp
@@ -110,7 +110,7 @@ TDEActionCollection::TDEActionCollection( TQObject *parent, const char *name,
kdWarning(129) << "TDEActionCollection::TDEActionCollection( TQObject *parent, const char *name, TDEInstance *instance )" << endl; //ellis
kdDebug(129) << kdBacktrace() << endl;
d = new TDEActionCollectionPrivate;
- TQWidget* w = tqt_dynamic_cast<TQWidget*>( parent );
+ TQWidget* w = dynamic_cast<TQWidget*>( parent );
if( w )
setWidget( w );
//d->m_bOneTDEAccelOnly = (d->m_tdeaccelList.count() > 0);
@@ -501,21 +501,21 @@ void TDEActionCollection::connectHighlight( TQWidget *container, TDEAction *acti
{
actionList = new TQPtrList<TDEAction>;
- if ( ::tqqt_cast<TQPopupMenu *>( container ) )
+ if ( ::tqt_cast<TQPopupMenu *>( container ) )
{
- connect( container, TQT_SIGNAL( highlighted( int ) ),
- this, TQT_SLOT( slotMenuItemHighlighted( int ) ) );
- connect( container, TQT_SIGNAL( aboutToHide() ),
- this, TQT_SLOT( slotMenuAboutToHide() ) );
+ connect( container, TQ_SIGNAL( highlighted( int ) ),
+ this, TQ_SLOT( slotMenuItemHighlighted( int ) ) );
+ connect( container, TQ_SIGNAL( aboutToHide() ),
+ this, TQ_SLOT( slotMenuAboutToHide() ) );
}
- else if ( ::tqqt_cast<TDEToolBar *>( container ) )
+ else if ( ::tqt_cast<TDEToolBar *>( container ) )
{
- connect( container, TQT_SIGNAL( highlighted( int, bool ) ),
- this, TQT_SLOT( slotToolBarButtonHighlighted( int, bool ) ) );
+ connect( container, TQ_SIGNAL( highlighted( int, bool ) ),
+ this, TQ_SLOT( slotToolBarButtonHighlighted( int, bool ) ) );
}
- connect( container, TQT_SIGNAL( destroyed() ),
- this, TQT_SLOT( slotDestroyed() ) );
+ connect( container, TQ_SIGNAL( destroyed() ),
+ this, TQ_SLOT( slotDestroyed() ) );
d->m_dctHighlightContainers.insert( container, actionList );
}
@@ -547,7 +547,7 @@ void TDEActionCollection::slotMenuItemHighlighted( int id )
if ( d->m_currentHighlightAction )
emit actionHighlighted( d->m_currentHighlightAction, false );
- TQWidget *container = const_cast<TQWidget*>(TQT_TQWIDGET_CONST( sender() ));
+ TQWidget *container = static_cast<TQWidget *>( const_cast<TQObject *>( sender() ));
d->m_currentHighlightAction = findAction( container, id );
@@ -581,7 +581,7 @@ void TDEActionCollection::slotToolBarButtonHighlighted( int id, bool highlight )
if ( !d->m_highlight )
return;
- TQWidget *container = const_cast<TQWidget*>(TQT_TQWIDGET_CONST( sender() ));
+ TQWidget *container = static_cast<TQWidget *>( const_cast<TQObject *>( sender() ));
TDEAction *action = findAction( container, id );
@@ -606,7 +606,7 @@ void TDEActionCollection::slotToolBarButtonHighlighted( int id, bool highlight )
void TDEActionCollection::slotDestroyed()
{
- d->m_dctHighlightContainers.remove( reinterpret_cast<void *>( const_cast<TQObject*>(TQT_TQOBJECT_CONST(sender())) ) );
+ d->m_dctHighlightContainers.remove( reinterpret_cast<void *>( const_cast<TQObject*>(sender()) ) );
}
TDEAction *TDEActionCollection::findAction( TQWidget *container, int id )
@@ -796,7 +796,4 @@ void TDEActionPtrShortcutList::virtual_hook( int id, void* data )
void TDEActionCollection::virtual_hook( int, void* )
{ /*BASE::virtual_hook( id, data );*/ }
-/* vim: et sw=2 ts=2
- */
-
#include "tdeactioncollection.moc"