summaryrefslogtreecommitdiffstats
path: root/kresources/groupware/kabc_resourcegroupwareconfig.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 /kresources/groupware/kabc_resourcegroupwareconfig.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 'kresources/groupware/kabc_resourcegroupwareconfig.cpp')
-rw-r--r--kresources/groupware/kabc_resourcegroupwareconfig.cpp42
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;