diff options
Diffstat (limited to 'certmanager/customactions.cpp')
-rw-r--r-- | certmanager/customactions.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/certmanager/customactions.cpp b/certmanager/customactions.cpp index 1e08876d6..268b85eec 100644 --- a/certmanager/customactions.cpp +++ b/certmanager/customactions.cpp @@ -39,18 +39,18 @@ #include <tqlabel.h> -LabelAction::LabelAction( const TQString & text, KActionCollection * parent, +LabelAction::LabelAction( const TQString & text, TDEActionCollection * parent, const char* name ) - : KAction( text, TQIconSet(), KShortcut(), 0, 0, parent, name ) + : TDEAction( text, TQIconSet(), TDEShortcut(), 0, 0, parent, name ) { } int LabelAction::plug( TQWidget * widget, int index ) { - if ( kapp && !kapp->authorizeKAction( name() ) ) + if ( kapp && !kapp->authorizeTDEAction( name() ) ) return -1; - if ( widget->inherits( "KToolBar" ) ) { - KToolBar * bar = (KToolBar *)widget; + if ( widget->inherits( "TDEToolBar" ) ) { + TDEToolBar * bar = (TDEToolBar *)widget; int id_ = getToolButtonID(); TQLabel* label = new TQLabel( text(), bar, "kde toolbar widget" ); bar->insertWidget( id_, label->width(), label, index ); @@ -59,22 +59,22 @@ int LabelAction::plug( TQWidget * widget, int index ) { return containerCount() - 1; } - return KAction::plug( widget, index ); + return TDEAction::plug( widget, index ); } -LineEditAction::LineEditAction( const TQString & text, KActionCollection * parent, +LineEditAction::LineEditAction( const TQString & text, TDEActionCollection * parent, TQObject * receiver, const char * member, const char * name ) - : KAction( text, TQIconSet(), KShortcut(), 0, 0, parent, name ), + : TDEAction( text, TQIconSet(), TDEShortcut(), 0, 0, parent, name ), _le(0), _receiver(receiver), _member(member) { } int LineEditAction::plug( TQWidget * widget, int index ) { - if ( kapp && !kapp->authorizeKAction( name() ) ) + if ( kapp && !kapp->authorizeTDEAction( name() ) ) return -1; - if ( widget->inherits( "KToolBar" ) ) { - KToolBar *bar = (KToolBar *)widget; + if ( widget->inherits( "TDEToolBar" ) ) { + TDEToolBar *bar = (TDEToolBar *)widget; int id_ = getToolButtonID(); // The toolbar trick doesn't seem to work for lineedits //_le = new TQLineEdit( bar, "kde toolbar widget" ); @@ -87,7 +87,7 @@ int LineEditAction::plug( TQWidget * widget, int index ) { return containerCount() - 1; } - return KAction::plug( widget, index ); + return TDEAction::plug( widget, index ); } void LineEditAction::clear() { @@ -108,20 +108,20 @@ void LineEditAction::setText( const TQString & txt ) { } -ComboAction::ComboAction( const TQStringList & lst, KActionCollection * parent, +ComboAction::ComboAction( const TQStringList & lst, TDEActionCollection * parent, TQObject * receiver, const char * member, const char * name, int selectedID ) - : KAction( TQString(), TQIconSet(), KShortcut(), 0, 0, parent, name ), + : TDEAction( TQString(), TQIconSet(), TDEShortcut(), 0, 0, parent, name ), _lst(lst), _receiver(receiver), _member(member), _selectedId( selectedID ) { } int ComboAction::plug( TQWidget * widget, int index ) { - if ( kapp && !kapp->authorizeKAction( name() ) ) + if ( kapp && !kapp->authorizeTDEAction( name() ) ) return -1; - if ( widget->inherits( "KToolBar" ) ) { - KToolBar *bar = (KToolBar *)widget; + if ( widget->inherits( "TDEToolBar" ) ) { + TDEToolBar *bar = (TDEToolBar *)widget; int id_ = getToolButtonID(); bar->insertCombo( _lst, id_, false, TQT_SIGNAL( highlighted(int) ), _receiver, _member ); bar->setCurrentComboItem( id_,_selectedId ); @@ -130,7 +130,7 @@ int ComboAction::plug( TQWidget * widget, int index ) { return containerCount() - 1; } - return KAction::plug( widget, index ); + return TDEAction::plug( widget, index ); } #include "customactions.moc" |