diff options
Diffstat (limited to 'kresources/groupware/kabc_resourcegroupwareconfig.cpp')
-rw-r--r-- | kresources/groupware/kabc_resourcegroupwareconfig.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/kresources/groupware/kabc_resourcegroupwareconfig.cpp b/kresources/groupware/kabc_resourcegroupwareconfig.cpp index 8cb656a93..cfe6ba98c 100644 --- a/kresources/groupware/kabc_resourcegroupwareconfig.cpp +++ b/kresources/groupware/kabc_resourcegroupwareconfig.cpp @@ -31,16 +31,16 @@ #include <klistview.h> #include <kurlrequester.h> -#include <qlabel.h> -#include <qlayout.h> +#include <tqlabel.h> +#include <tqlayout.h> using namespace KABC; class AddressBookItem : public QCheckListItem { public: - AddressBookItem( KListView *parent, const QString &id ) - : QCheckListItem( parent, "", CheckBox ), + AddressBookItem( KListView *parent, const TQString &id ) + : TQCheckListItem( parent, "", CheckBox ), mId( id ) { setText( 0, mId ); @@ -52,42 +52,42 @@ class AddressBookItem : public QCheckListItem #endif } - QString id() const { return mId; } + TQString id() const { return mId; } private: - QString mId; + TQString mId; }; -ResourceGroupwareConfig::ResourceGroupwareConfig( QWidget* parent, const char* name ) +ResourceGroupwareConfig::ResourceGroupwareConfig( 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 ); @@ -100,13 +100,13 @@ ResourceGroupwareConfig::ResourceGroupwareConfig( 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 ResourceGroupwareConfig::loadSettings( KRES::Resource *res ) @@ -158,10 +158,10 @@ void ResourceGroupwareConfig::updateAddressBookList() void ResourceGroupwareConfig::saveAddressBookSettings() { #if 0 - 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() ) @@ -187,7 +187,7 @@ void ResourceGroupwareConfig::updateAddressBookView() mWriteAddressBookIds.clear(); #if 0 - QStringList selectedRead = mResource->prefs()->readAddressBooks(); + TQStringList selectedRead = mResource->prefs()->readAddressBooks(); Groupware::AddressBook::List addressBooks = mResource->addressBooks(); Groupware::AddressBook::List::ConstIterator abIt; |