From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- certmanager/customactions.cpp | 46 +++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'certmanager/customactions.cpp') diff --git a/certmanager/customactions.cpp b/certmanager/customactions.cpp index 53e5dd2d..27fed1ae 100644 --- a/certmanager/customactions.cpp +++ b/certmanager/customactions.cpp @@ -35,55 +35,55 @@ #include #include -#include -#include +#include +#include -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; } -- cgit v1.2.3