summaryrefslogtreecommitdiffstats
path: root/certmanager/customactions.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /certmanager/customactions.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'certmanager/customactions.cpp')
-rw-r--r--certmanager/customactions.cpp46
1 files changed, 23 insertions, 23 deletions
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 <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;
}