summaryrefslogtreecommitdiffstats
path: root/certmanager/customactions.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:14:12 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:14:12 -0600
commitfd5d099065a748cac49e20a13481f85666c53c71 (patch)
treea0f1672cd88eb0e69b9ddc2ed9b08ecd98538bd3 /certmanager/customactions.cpp
parentb440a9c608596cd88efdb3bfa4661c5e37efbe4b (diff)
downloadtdepim-fd5d099065a748cac49e20a13481f85666c53c71.tar.gz
tdepim-fd5d099065a748cac49e20a13481f85666c53c71.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'certmanager/customactions.cpp')
-rw-r--r--certmanager/customactions.cpp36
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"