diff options
Diffstat (limited to 'certmanager/customactions.cpp')
-rw-r--r-- | certmanager/customactions.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/certmanager/customactions.cpp b/certmanager/customactions.cpp index 53e5dd2d8..27fed1ae4 100644 --- a/certmanager/customactions.cpp +++ b/certmanager/customactions.cpp @@ -35,55 +35,55 @@ #include <ktoolbar.h> #include <kapplication.h> -#include <qlineedit.h> -#include <qlabel.h> +#include <tqlineedit.h> +#include <tqlabel.h> -LabelAction::LabelAction( const QString & text, KActionCollection * parent, +LabelAction::LabelAction( const TQString & text, KActionCollection * parent, const char* name ) - : KAction( text, QIconSet(), KShortcut(), 0, 0, parent, name ) + : KAction( text, TQIconSet(), KShortcut(), 0, 0, parent, name ) { } -int LabelAction::plug( QWidget * widget, int index ) { +int LabelAction::plug( TQWidget * widget, int index ) { if ( kapp && !kapp->authorizeKAction( name() ) ) return -1; if ( widget->inherits( "KToolBar" ) ) { KToolBar * bar = (KToolBar *)widget; int id_ = getToolButtonID(); - QLabel* label = new QLabel( text(), bar, "kde toolbar widget" ); + TQLabel* label = new TQLabel( text(), bar, "kde toolbar widget" ); bar->insertWidget( id_, label->width(), label, index ); addContainer( bar, id_ ); - connect( bar, SIGNAL( destroyed() ), this, SLOT( slotDestroyed() ) ); + connect( bar, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) ); return containerCount() - 1; } return KAction::plug( widget, index ); } -LineEditAction::LineEditAction( const QString & text, KActionCollection * parent, - QObject * receiver, const char * member, const char * name ) - : KAction( text, QIconSet(), KShortcut(), 0, 0, parent, name ), +LineEditAction::LineEditAction( const TQString & text, KActionCollection * parent, + TQObject * receiver, const char * member, const char * name ) + : KAction( text, TQIconSet(), KShortcut(), 0, 0, parent, name ), _le(0), _receiver(receiver), _member(member) { } -int LineEditAction::plug( QWidget * widget, int index ) { +int LineEditAction::plug( TQWidget * widget, int index ) { if ( kapp && !kapp->authorizeKAction( name() ) ) return -1; if ( widget->inherits( "KToolBar" ) ) { KToolBar *bar = (KToolBar *)widget; int id_ = getToolButtonID(); // The toolbar trick doesn't seem to work for lineedits - //_le = new QLineEdit( bar, "kde toolbar widget" ); - _le = new QLineEdit( bar ); + //_le = new TQLineEdit( bar, "kde toolbar widget" ); + _le = new TQLineEdit( bar ); bar->insertWidget( id_, _le->width(), _le, index ); bar->setStretchableWidget( _le ); addContainer( bar, id_ ); - connect( bar, SIGNAL( destroyed() ), this, SLOT( slotDestroyed() ) ); - connect( _le, SIGNAL( returnPressed() ), _receiver, _member ); + connect( bar, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) ); + connect( _le, TQT_SIGNAL( returnPressed() ), _receiver, _member ); return containerCount() - 1; } @@ -99,34 +99,34 @@ void LineEditAction::focusAll() { _le->setFocus(); } -QString LineEditAction::text() const { +TQString LineEditAction::text() const { return _le->text(); } -void LineEditAction::setText( const QString & txt ) { +void LineEditAction::setText( const TQString & txt ) { _le->setText(txt); } -ComboAction::ComboAction( const QStringList & lst, KActionCollection * parent, - QObject * receiver, const char * member, const char * name, +ComboAction::ComboAction( const TQStringList & lst, KActionCollection * parent, + TQObject * receiver, const char * member, const char * name, int selectedID ) - : KAction( QString::null, QIconSet(), KShortcut(), 0, 0, parent, name ), + : KAction( TQString::null, TQIconSet(), KShortcut(), 0, 0, parent, name ), _lst(lst), _receiver(receiver), _member(member), _selectedId( selectedID ) { } -int ComboAction::plug( QWidget * widget, int index ) { +int ComboAction::plug( TQWidget * widget, int index ) { if ( kapp && !kapp->authorizeKAction( name() ) ) return -1; if ( widget->inherits( "KToolBar" ) ) { KToolBar *bar = (KToolBar *)widget; int id_ = getToolButtonID(); - bar->insertCombo( _lst, id_, false, SIGNAL( highlighted(int) ), _receiver, _member ); + bar->insertCombo( _lst, id_, false, TQT_SIGNAL( highlighted(int) ), _receiver, _member ); bar->setCurrentComboItem( id_,_selectedId ); addContainer( bar, id_ ); - connect( bar, SIGNAL( destroyed() ), this, SLOT( slotDestroyed() ) ); + connect( bar, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) ); return containerCount() - 1; } |