From fd5d099065a748cac49e20a13481f85666c53c71 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:14:12 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- certmanager/customactions.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'certmanager/customactions.cpp') diff --git a/certmanager/customactions.cpp b/certmanager/customactions.cpp index 1e08876d..268b85ee 100644 --- a/certmanager/customactions.cpp +++ b/certmanager/customactions.cpp @@ -39,18 +39,18 @@ #include -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" -- cgit v1.2.3