diff options
Diffstat (limited to 'kresources/groupwise/kabc_resourcegroupwiseconfig.cpp')
-rw-r--r-- | kresources/groupwise/kabc_resourcegroupwiseconfig.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/kresources/groupwise/kabc_resourcegroupwiseconfig.cpp b/kresources/groupwise/kabc_resourcegroupwiseconfig.cpp index daa1008ac..f195700c8 100644 --- a/kresources/groupwise/kabc_resourcegroupwiseconfig.cpp +++ b/kresources/groupwise/kabc_resourcegroupwiseconfig.cpp @@ -31,8 +31,8 @@ #include <klistview.h> #include <kurlrequester.h> -#include <qlabel.h> -#include <qlayout.h> +#include <tqlabel.h> +#include <tqlayout.h> using namespace KABC; @@ -40,7 +40,7 @@ class AddressBookItem : public QCheckListItem { public: AddressBookItem( KListView *parent, GroupWise::AddressBook ab ) - : QCheckListItem( parent, "", CheckBox ), + : TQCheckListItem( parent, "", CheckBox ), mId( ab.id ) { setText( 0, ab.name ); @@ -50,42 +50,42 @@ class AddressBookItem : public QCheckListItem else setText( 2, i18n("No") ); } - QString id() const { return mId; } + TQString id() const { return mId; } private: - QString mId; + TQString mId; }; -ResourceGroupwiseConfig::ResourceGroupwiseConfig( QWidget* parent, const char* name ) +ResourceGroupwiseConfig::ResourceGroupwiseConfig( TQWidget* parent, const char* name ) : KRES::ConfigWidget( parent, name ) { - QGridLayout *mainLayout = new QGridLayout( this, 7, 2, 0, KDialog::spacingHint() ); + TQGridLayout *mainLayout = new TQGridLayout( this, 7, 2, 0, KDialog::spacingHint() ); - QLabel *label = new QLabel( i18n( "URL:" ), this ); + TQLabel *label = new TQLabel( i18n( "URL:" ), this ); mURL = new KURLRequester( this ); mainLayout->addWidget( label, 0, 0 ); mainLayout->addWidget( mURL, 0, 1 ); - label = new QLabel( i18n( "User:" ), this ); + label = new TQLabel( i18n( "User:" ), this ); mUser = new KLineEdit( this ); mainLayout->addWidget( label, 1, 0 ); mainLayout->addWidget( mUser, 1, 1 ); - label = new QLabel( i18n( "Password:" ), this ); + label = new TQLabel( i18n( "Password:" ), this ); mPassword = new KLineEdit( this ); - mPassword->setEchoMode( QLineEdit::Password ); + mPassword->setEchoMode( TQLineEdit::Password ); mainLayout->addWidget( label, 2, 0 ); mainLayout->addWidget( mPassword, 2, 1 ); - QFrame *hline = new QFrame( this ); - hline->setFrameStyle( QFrame::HLine | QFrame::Sunken ); + TQFrame *hline = new TQFrame( this ); + hline->setFrameStyle( TQFrame::HLine | TQFrame::Sunken ); mainLayout->addMultiCellWidget( hline, 3, 3, 0, 1 ); - QPushButton *updateButton = new QPushButton( i18n( "Retrieve Address Book List From Server" ), this ); + TQPushButton *updateButton = new TQPushButton( i18n( "Retrieve Address Book List From Server" ), this ); mainLayout->addMultiCellWidget( updateButton, 4, 4, 0, 1 ); mAddressBookView = new KListView( this ); @@ -96,13 +96,13 @@ ResourceGroupwiseConfig::ResourceGroupwiseConfig( QWidget* parent, const char* mainLayout->addMultiCellWidget( mAddressBookView, 5, 5, 0, 1 ); - label = new QLabel( i18n( "Address book for new contacts:" ), this ); + label = new TQLabel( i18n( "Address book for new contacts:" ), this ); mAddressBookBox = new KComboBox( this ); mainLayout->addWidget( label, 6, 0 ); mainLayout->addWidget( mAddressBookBox, 6, 1 ); - connect( updateButton, SIGNAL( clicked() ), SLOT( updateAddressBookList() ) ); + connect( updateButton, TQT_SIGNAL( clicked() ), TQT_SLOT( updateAddressBookList() ) ); } void ResourceGroupwiseConfig::loadSettings( KRES::Resource *res ) @@ -153,10 +153,10 @@ void ResourceGroupwiseConfig::updateAddressBookList() void ResourceGroupwiseConfig::saveAddressBookSettings() { - QStringList selectedRead; - QString selectedWrite; + TQStringList selectedRead; + TQString selectedWrite; - QListViewItemIterator it2( mAddressBookView ); + TQListViewItemIterator it2( mAddressBookView ); while ( it2.current() ) { AddressBookItem *item = static_cast<AddressBookItem*>( it2.current() ); if ( item->isOn() ) @@ -167,7 +167,7 @@ void ResourceGroupwiseConfig::saveAddressBookSettings() // check if the SAB was selected when the settings were loaded and is not selected now, // if so, clear the resource to clear the SAB data that is no longer required. // also, set the sequence numbers to 0 so that we know the SAB should be re-fetched in its entirety the next time we do load it - QString sab = mResource->prefs()->systemAddressBook(); + TQString sab = mResource->prefs()->systemAddressBook(); if ( ( mReadAddressBookIds.find( sab ) != mReadAddressBookIds.end() ) && ( selectedRead.find( sab ) == selectedRead.end() ) ) { mResource->clearCache(); @@ -189,7 +189,7 @@ void ResourceGroupwiseConfig::updateAddressBookView() mAddressBookBox->clear(); mWriteAddressBookIds.clear(); - QStringList selectedRead = mResource->prefs()->readAddressBooks(); + TQStringList selectedRead = mResource->prefs()->readAddressBooks(); GroupWise::AddressBook::List addressBooks = mResource->addressBooks(); GroupWise::AddressBook::List::ConstIterator abIt; |