diff options
Diffstat (limited to 'lib/kformula/symbolaction.cc')
-rw-r--r-- | lib/kformula/symbolaction.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/kformula/symbolaction.cc b/lib/kformula/symbolaction.cc index edc3d62e..58074a2b 100644 --- a/lib/kformula/symbolaction.cc +++ b/lib/kformula/symbolaction.cc @@ -102,27 +102,27 @@ void SymbolComboItem::paint( TQPainter *p ) * The symbol action * */ SymbolAction::SymbolAction( TQObject* parent, const char* name ) - : KSelectAction( parent, name ) + : TDESelectAction( parent, name ) { setEditable( FALSE ); } -SymbolAction::SymbolAction( const TQString& text, const KShortcut& cut, +SymbolAction::SymbolAction( const TQString& text, const TDEShortcut& cut, const TQObject* receiver, const char* slot, TQObject* parent, const char* name ) - : KSelectAction( text, cut, receiver, slot, parent, name ) + : TDESelectAction( text, cut, receiver, slot, parent, name ) { setEditable( FALSE ); } int SymbolAction::plug( TQWidget* w, int index ) { - if (kapp && !kapp->authorizeKAction(name())) + if (kapp && !kapp->authorizeTDEAction(name())) return -1; - if ( w->inherits( "KToolBar" ) ) + if ( w->inherits( "TDEToolBar" ) ) { - KToolBar* bar = static_cast<KToolBar*>( w ); - int id_ = KAction::getToolButtonID(); + TDEToolBar* bar = static_cast<TDEToolBar*>( w ); + int id_ = TDEAction::getToolButtonID(); KComboBox *cb = new KComboBox( bar ); connect( cb, TQT_SIGNAL( activated( const TQString & ) ), TQT_SLOT( slotActivated( const TQString & ) ) ); @@ -138,7 +138,7 @@ int SymbolAction::plug( TQWidget* w, int index ) return containerCount() - 1; } - else return KSelectAction::plug( w, index ); + else return TDESelectAction::plug( w, index ); } void SymbolAction::setSymbols( const TQStringList &names, @@ -157,8 +157,8 @@ void SymbolAction::setSymbols( const TQStringList &names, void SymbolAction::updateItems( int id ) { TQWidget *w = container( id ); - if ( w->inherits( "KToolBar" ) ) { - TQWidget *r = static_cast<KToolBar*>( w )->getWidget( itemId( id ) ); + if ( w->inherits( "TDEToolBar" ) ) { + TQWidget *r = static_cast<TDEToolBar*>( w )->getWidget( itemId( id ) ); if ( r->inherits( TQCOMBOBOX_OBJECT_NAME_STRING ) ) { TQComboBox *cb = static_cast<TQComboBox*>( r ); cb->clear(); |