diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:02:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:02:43 -0600 |
commit | aea627236e4de24599c3e30617cf264c3c1b7d40 (patch) | |
tree | 467e13ca5a7eb0ab292259289ecc3572f53c5eae /lib/kformula/symbolaction.cc | |
parent | 786304c6211f35ddc4cdd54b7aa7985fef4a2e70 (diff) | |
download | koffice-aea627236e4de24599c3e30617cf264c3c1b7d40.tar.gz koffice-aea627236e4de24599c3e30617cf264c3c1b7d40.zip |
Rename a number of classes to enhance compatibility with KDE4
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(); |