summaryrefslogtreecommitdiffstats
path: root/src/widgets/qaction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/qaction.cpp')
-rw-r--r--src/widgets/qaction.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/widgets/qaction.cpp b/src/widgets/qaction.cpp
index 314a4f705..391b47eef 100644
--- a/src/widgets/qaction.cpp
+++ b/src/widgets/qaction.cpp
@@ -220,18 +220,18 @@ TQActionPrivate::~TQActionPrivate()
++itci;
TQComboBox* combo = ci->combo;
combo->clear();
- TQActionGroup *group = ::qt_cast<TQActionGroup*>(action->parent());
+ TQActionGroup *group = ::tqt_cast<TQActionGroup*>(action->parent());
TQObjectList *siblings = group ? group->queryList("TQAction") : 0;
if (siblings) {
TQObjectListIt it(*siblings);
while (it.current()) {
- TQAction *sib = ::qt_cast<TQAction*>(it.current());
+ TQAction *sib = ::tqt_cast<TQAction*>(it.current());
++it;
sib->removeFrom(combo);
}
it = TQObjectListIt(*siblings);
while (it.current()) {
- TQAction *sib = ::qt_cast<TQAction*>(it.current());
+ TQAction *sib = ::tqt_cast<TQAction*>(it.current());
++it;
if (sib == action)
continue;
@@ -568,7 +568,7 @@ TQAction::TQAction( const TQString& text, const TQString& menuText, TQKeySequenc
*/
void TQAction::init()
{
- if ( ::qt_cast<TQActionGroup*>(parent()) )
+ if ( ::tqt_cast<TQActionGroup*>(parent()) )
((TQActionGroup*) parent())->add( this ); // insert into action group
}
@@ -1008,7 +1008,7 @@ void TQAction::toolButtonToggled( bool on )
bool TQAction::addTo( TQWidget* w )
{
#ifndef QT_NO_TOOLBAR
- if ( ::qt_cast<TQToolBar*>(w) ) {
+ if ( ::tqt_cast<TQToolBar*>(w) ) {
if ( !qstrcmp( name(), "qt_separator_action" ) ) {
((TQToolBar*)w)->addSeparator();
} else {
@@ -1030,7 +1030,7 @@ bool TQAction::addTo( TQWidget* w )
}
} else
#endif
- if ( ::qt_cast<TQPopupMenu*>(w) ) {
+ if ( ::tqt_cast<TQPopupMenu*>(w) ) {
TQActionPrivate::MenuItem* mi = new TQActionPrivate::MenuItem;
mi->popup = (TQPopupMenu*) w;
TQIconSet* diconset = d->iconset;
@@ -1049,7 +1049,7 @@ bool TQAction::addTo( TQWidget* w )
connect( mi->popup, SIGNAL(aboutToHide()), this, SLOT(clearStatusText()) );
connect( mi->popup, SIGNAL( destroyed() ), this, SLOT( objectDestroyed() ) );
// Makes only sense when called by TQActionGroup::addTo
- } else if ( ::qt_cast<TQComboBox*>(w) ) {
+ } else if ( ::tqt_cast<TQComboBox*>(w) ) {
TQActionPrivate::ComboItem *ci = new TQActionPrivate::ComboItem;
ci->combo = (TQComboBox*)w;
connect( ci->combo, SIGNAL( destroyed() ), this, SLOT( objectDestroyed() ) );
@@ -1108,7 +1108,7 @@ void TQAction::showStatusText( const TQString& text )
static TQPopupMenu *lastmenu = 0;
TQObject *s = (TQObject*)sender();
if ( s ) {
- TQPopupMenu *menu = (TQPopupMenu*)s->qt_cast( "TQPopupMenu" );
+ TQPopupMenu *menu = (TQPopupMenu*)s->tqt_cast( "TQPopupMenu" );
if ( menu && !!text )
lastmenu = menu;
else if ( menu && text.isEmpty() ) {
@@ -1188,7 +1188,7 @@ void TQAction::clearStatusText()
bool TQAction::removeFrom( TQWidget* w )
{
#ifndef QT_NO_TOOLBAR
- if ( ::qt_cast<TQToolBar*>(w) ) {
+ if ( ::tqt_cast<TQToolBar*>(w) ) {
TQPtrListIterator<TQToolButton> it( d->toolbuttons);
TQToolButton* btn;
while ( ( btn = it.current() ) ) {
@@ -1202,7 +1202,7 @@ bool TQAction::removeFrom( TQWidget* w )
}
} else
#endif
- if ( ::qt_cast<TQPopupMenu*>(w) ) {
+ if ( ::tqt_cast<TQPopupMenu*>(w) ) {
TQPtrListIterator<TQActionPrivate::MenuItem> it( d->menuitems);
TQActionPrivate::MenuItem* mi;
while ( ( mi = it.current() ) ) {
@@ -1215,7 +1215,7 @@ bool TQAction::removeFrom( TQWidget* w )
d->menuitems.removeRef( mi );
}
}
- } else if ( ::qt_cast<TQComboBox*>(w) ) {
+ } else if ( ::tqt_cast<TQComboBox*>(w) ) {
TQPtrListIterator<TQActionPrivate::ComboItem> it( d->comboitems );
TQActionPrivate::ComboItem *ci;
while ( ( ci = it.current() ) ) {
@@ -1347,7 +1347,7 @@ void TQActionGroupPrivate::update( const TQActionGroup* that )
}
for ( TQPtrListIterator<TQActionGroupPrivate::MenuItem> pu( menuitems ); pu.current(); ++pu ) {
TQWidget* parent = pu.current()->popup->parentWidget();
- if ( ::qt_cast<TQPopupMenu*>(parent) ) {
+ if ( ::tqt_cast<TQPopupMenu*>(parent) ) {
TQPopupMenu* ppopup = (TQPopupMenu*)parent;
ppopup->setItemEnabled( pu.current()->id, that->isEnabled() );
ppopup->setItemVisible( pu.current()->id, that->isVisible() );
@@ -1357,7 +1357,7 @@ void TQActionGroupPrivate::update( const TQActionGroup* that )
}
for ( TQPtrListIterator<TQPopupMenu> pm( popupmenus ); pm.current(); ++pm ) {
TQPopupMenu *popup = pm.current();
- TQPopupMenu *parent = ::qt_cast<TQPopupMenu*>(popup->parentWidget());
+ TQPopupMenu *parent = ::tqt_cast<TQPopupMenu*>(popup->parentWidget());
if ( !parent )
continue;
@@ -1654,7 +1654,7 @@ void TQActionGroup::addSeparator()
bool TQActionGroup::addTo( TQWidget* w )
{
#ifndef QT_NO_TOOLBAR
- if ( ::qt_cast<TQToolBar*>(w) ) {
+ if ( ::tqt_cast<TQToolBar*>(w) ) {
if ( d->dropdown ) {
if ( !d->exclusive ) {
TQPtrListIterator<TQAction> it( d->actions);
@@ -1737,7 +1737,7 @@ bool TQActionGroup::addTo( TQWidget* w )
}
} else
#endif
- if ( ::qt_cast<TQPopupMenu*>(w) ) {
+ if ( ::tqt_cast<TQPopupMenu*>(w) ) {
TQPopupMenu *popup;
if ( d->dropdown ) {
TQPopupMenu *menu = (TQPopupMenu*)w;
@@ -1791,7 +1791,7 @@ bool TQActionGroup::removeFrom( TQWidget* w )
}
#ifndef QT_NO_TOOLBAR
- if ( ::qt_cast<TQToolBar*>(w) ) {
+ if ( ::tqt_cast<TQToolBar*>(w) ) {
TQPtrListIterator<TQComboBox> cb( d->comboboxes );
while( cb.current() ) {
TQComboBox *box = cb.current();
@@ -1808,7 +1808,7 @@ bool TQActionGroup::removeFrom( TQWidget* w )
}
} else
#endif
- if ( ::qt_cast<TQPopupMenu*>(w) ) {
+ if ( ::tqt_cast<TQPopupMenu*>(w) ) {
TQPtrListIterator<TQActionGroupPrivate::MenuItem> pu( d->menuitems );
while ( pu.current() ) {
TQActionGroupPrivate::MenuItem *mi = pu.current();
@@ -1959,7 +1959,7 @@ void TQActionGroup::childEvent( TQChildEvent *e )
if ( !e->removed() )
return;
- TQAction *action = ::qt_cast<TQAction*>(e->child());
+ TQAction *action = ::tqt_cast<TQAction*>(e->child());
if ( !action )
return;