summaryrefslogtreecommitdiffstats
path: root/tdeui/tdeaction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeui/tdeaction.cpp')
-rw-r--r--tdeui/tdeaction.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/tdeui/tdeaction.cpp b/tdeui/tdeaction.cpp
index fe9b0644b..bf818fc03 100644
--- a/tdeui/tdeaction.cpp
+++ b/tdeui/tdeaction.cpp
@@ -515,11 +515,11 @@ void TDEAction::updateShortcut( int i )
int id = itemId( i );
TQWidget* w = container( i );
- if ( ::tqqt_cast<TQPopupMenu *>( w ) ) {
+ if ( ::tqt_cast<TQPopupMenu *>( w ) ) {
TQPopupMenu* menu = static_cast<TQPopupMenu*>(w);
updateShortcut( menu, id );
}
- else if ( ::tqqt_cast<TQMenuBar *>( w ) )
+ else if ( ::tqt_cast<TQMenuBar *>( w ) )
static_cast<TQMenuBar*>(w)->setAccel( d->m_cut.keyCodeQt(), id );
}
@@ -616,7 +616,7 @@ void TDEAction::updateToolTip( int i )
{
TQWidget *w = container( i );
- if ( ::tqqt_cast<TDEToolBar *>( w ) )
+ if ( ::tqt_cast<TDEToolBar *>( w ) )
TQToolTip::add( static_cast<TDEToolBar*>(w)->getWidget( itemId( i ) ), d->toolTip() );
}
@@ -649,7 +649,7 @@ int TDEAction::plug( TQWidget *w, int index )
plugShortcut();
- if ( ::tqqt_cast<TQPopupMenu *>( w ) )
+ if ( ::tqt_cast<TQPopupMenu *>( w ) )
{
TQPopupMenu* menu = static_cast<TQPopupMenu*>( w );
int id;
@@ -693,7 +693,7 @@ int TDEAction::plug( TQWidget *w, int index )
return d->m_containers.count() - 1;
}
- else if ( ::tqqt_cast<TDEToolBar *>( w ) )
+ else if ( ::tqt_cast<TDEToolBar *>( w ) )
{
TDEToolBar *bar = static_cast<TDEToolBar *>( w );
@@ -749,17 +749,17 @@ void TDEAction::unplug( TQWidget *w )
return;
int id = itemId( i );
- if ( ::tqqt_cast<TQPopupMenu *>( w ) )
+ if ( ::tqt_cast<TQPopupMenu *>( w ) )
{
TQPopupMenu *menu = static_cast<TQPopupMenu *>( w );
menu->removeItem( id );
}
- else if ( ::tqqt_cast<TDEToolBar *>( w ) )
+ else if ( ::tqt_cast<TDEToolBar *>( w ) )
{
TDEToolBar *bar = static_cast<TDEToolBar *>( w );
bar->removeItemDelayed( id );
}
- else if ( ::tqqt_cast<TQMenuBar *>( w ) )
+ else if ( ::tqt_cast<TQMenuBar *>( w ) )
{
TQMenuBar *bar = static_cast<TQMenuBar *>( w );
bar->removeItem( id );
@@ -863,11 +863,11 @@ void TDEAction::updateEnabled( int i )
{
TQWidget *w = container( i );
- if ( ::tqqt_cast<TQPopupMenu *>( w ) )
+ if ( ::tqt_cast<TQPopupMenu *>( w ) )
static_cast<TQPopupMenu*>(w)->setItemEnabled( itemId( i ), d->isEnabled() );
- else if ( ::tqqt_cast<TQMenuBar *>( w ) )
+ else if ( ::tqt_cast<TQMenuBar *>( w ) )
static_cast<TQMenuBar*>(w)->setItemEnabled( itemId( i ), d->isEnabled() );
- else if ( ::tqqt_cast<TDEToolBar *>( w ) )
+ else if ( ::tqt_cast<TDEToolBar *>( w ) )
static_cast<TDEToolBar*>(w)->setItemEnabled( itemId( i ), d->isEnabled() );
}
@@ -909,18 +909,18 @@ void TDEAction::updateText( int i )
{
TQWidget *w = container( i );
- if ( ::tqqt_cast<TQPopupMenu *>( w ) ) {
+ if ( ::tqt_cast<TQPopupMenu *>( w ) ) {
int id = itemId( i );
static_cast<TQPopupMenu*>(w)->changeItem( id, d->text() );
if (!d->m_cut.isNull())
updateShortcut( static_cast<TQPopupMenu*>(w), id );
}
- else if ( ::tqqt_cast<TQMenuBar *>( w ) )
+ else if ( ::tqt_cast<TQMenuBar *>( w ) )
static_cast<TQMenuBar*>(w)->changeItem( itemId( i ), d->text() );
- else if ( ::tqqt_cast<TDEToolBar *>( w ) )
+ else if ( ::tqt_cast<TDEToolBar *>( w ) )
{
TQWidget *button = static_cast<TDEToolBar *>(w)->getWidget( itemId( i ) );
- if ( ::tqqt_cast<TDEToolBarButton *>( button ) )
+ if ( ::tqt_cast<TDEToolBarButton *>( button ) )
static_cast<TDEToolBarButton *>(button)->setText( d->plainText() );
}
}
@@ -949,15 +949,15 @@ void TDEAction::updateIcon( int id )
{
TQWidget* w = container( id );
- if ( ::tqqt_cast<TQPopupMenu *>( w ) ) {
+ if ( ::tqt_cast<TQPopupMenu *>( w ) ) {
int itemId_ = itemId( id );
static_cast<TQPopupMenu*>(w)->changeItem( itemId_, d->iconSet( TDEIcon::Small ), d->text() );
if (!d->m_cut.isNull())
updateShortcut( static_cast<TQPopupMenu*>(w), itemId_ );
}
- else if ( ::tqqt_cast<TQMenuBar *>( w ) )
+ else if ( ::tqt_cast<TQMenuBar *>( w ) )
static_cast<TQMenuBar*>(w)->changeItem( itemId( id ), d->iconSet( TDEIcon::Small ), d->text() );
- else if ( ::tqqt_cast<TDEToolBar *>( w ) )
+ else if ( ::tqt_cast<TDEToolBar *>( w ) )
static_cast<TDEToolBar *>(w)->setButtonIcon( itemId( id ), d->iconName() );
}
@@ -980,16 +980,16 @@ void TDEAction::updateIconSet( int id )
{
TQWidget *w = container( id );
- if ( ::tqqt_cast<TQPopupMenu *>( w ) )
+ if ( ::tqt_cast<TQPopupMenu *>( w ) )
{
int itemId_ = itemId( id );
static_cast<TQPopupMenu*>(w)->changeItem( itemId_, d->iconSet(), d->text() );
if (!d->m_cut.isNull())
updateShortcut( static_cast<TQPopupMenu*>(w), itemId_ );
}
- else if ( ::tqqt_cast<TQMenuBar *>( w ) )
+ else if ( ::tqt_cast<TQMenuBar *>( w ) )
static_cast<TQMenuBar*>(w)->changeItem( itemId( id ), d->iconSet(), d->text() );
- else if ( ::tqqt_cast<TDEToolBar *>( w ) )
+ else if ( ::tqt_cast<TDEToolBar *>( w ) )
{
if ( icon().isEmpty() && d->hasIcon() ) // only if there is no named icon ( scales better )
static_cast<TDEToolBar *>(w)->setButtonIconSet( itemId( id ), d->iconSet() );
@@ -1112,7 +1112,7 @@ void TDEAction::slotActivated()
const TQObject *senderObj = sender();
if ( senderObj )
{
- if ( ::tqqt_cast<TDEAccelPrivate *>( senderObj ) )
+ if ( ::tqt_cast<TDEAccelPrivate *>( senderObj ) )
emit activated( TDEAction::AccelActivation, TQt::NoButton );
}
emit activated();
@@ -1124,7 +1124,7 @@ void TDEAction::slotActivated()
// only called by QPopupMenus, we plugged us in.
void TDEAction::slotPopupActivated()
{
- if( ::tqqt_cast<TQSignal *>(sender()))
+ if( ::tqt_cast<TQSignal *>(sender()))
{
int id = dynamic_cast<const TQSignal *>(sender())->value().toInt();
int pos = findContainer(id);