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 --- .../groupwise/kcal_resourcegroupwiseconfig.cpp | 40 +++++++++++----------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'kresources/groupwise/kcal_resourcegroupwiseconfig.cpp') diff --git a/kresources/groupwise/kcal_resourcegroupwiseconfig.cpp b/kresources/groupwise/kcal_resourcegroupwiseconfig.cpp index 29741d201..04e1affd9 100644 --- a/kresources/groupwise/kcal_resourcegroupwiseconfig.cpp +++ b/kresources/groupwise/kcal_resourcegroupwiseconfig.cpp @@ -20,9 +20,9 @@ #include -#include -#include -#include +#include +#include +#include #include #include @@ -41,29 +41,29 @@ using namespace KCal; -ResourceGroupwiseConfig::ResourceGroupwiseConfig( QWidget* parent, const char* name ) +ResourceGroupwiseConfig::ResourceGroupwiseConfig( TQWidget* parent, const char* name ) : KRES::ConfigWidget( parent, name ) { resize( 245, 115 ); - QGridLayout *mainLayout = new QGridLayout( this, 2, 2 ); + TQGridLayout *mainLayout = new TQGridLayout( this, 2, 2 ); - QLabel *label = new QLabel( i18n("URL:"), this ); + TQLabel *label = new TQLabel( i18n("URL:"), this ); mainLayout->addWidget( label, 1, 0 ); mUrl = new KLineEdit( this ); mainLayout->addWidget( mUrl, 1, 1 ); - label = new QLabel( i18n("User:"), this ); + label = new TQLabel( i18n("User:"), this ); mainLayout->addWidget( label, 2, 0 ); mUserEdit = new KLineEdit( this ); mainLayout->addWidget( mUserEdit, 2, 1 ); - label = new QLabel( i18n("Password:"), this ); + label = new TQLabel( i18n("Password:"), this ); mainLayout->addWidget( label, 3, 0 ); mPasswordEdit = new KLineEdit( this ); mainLayout->addWidget( mPasswordEdit, 3, 1 ); mPasswordEdit->setEchoMode( KLineEdit::Password ); - QPushButton *settingsButton = new QPushButton( i18n( "View User Settings" ), this ); + TQPushButton *settingsButton = new TQPushButton( i18n( "View User Settings" ), this ); mainLayout->addMultiCellWidget( settingsButton, 4, 4, 0, 1 ); mReloadConfig = new KCal::ResourceCachedReloadConfig( this ); @@ -73,7 +73,7 @@ ResourceGroupwiseConfig::ResourceGroupwiseConfig( QWidget* parent, const char* mainLayout->addMultiCellWidget( mSaveConfig, 6, 6, 0, 1 ); settingsButton->hide(); - // connect( settingsButton, SIGNAL( clicked() ), SLOT( slotViewUserSettings() ) ); + // connect( settingsButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotViewUserSettings() ) ); } @@ -123,8 +123,8 @@ void ResourceGroupwiseConfig::slotViewUserSettings() if ( s ) { - KDialogBase * dialog = new KDialogBase( ::qt_cast(parent() ), "gwsettingswidget", true, i18n( "GroupWise Settings" ) ); -// QVBoxLayout * layout = new QVBoxLayout( dialog ); + KDialogBase * dialog = new KDialogBase( ::qt_cast(parent() ), "gwsettingswidget", true, i18n( "GroupWise Settings" ) ); +// TQVBoxLayout * layout = new TQVBoxLayout( dialog ); GroupWiseSettingsWidget * settingsWidget = new GroupWiseSettingsWidget( dialog ); dialog->setMainWidget( settingsWidget ); // populate dialog @@ -133,10 +133,10 @@ void ResourceGroupwiseConfig::slotViewUserSettings() for( it = s->group.begin(); it != s->group.end(); ++it ) { ngwt__SettingsGroup * group = *it; - QString groupName; + TQString groupName; if ( group->type ) { - groupName = QString::fromUtf8( group->type->c_str() ); + groupName = TQString::fromUtf8( group->type->c_str() ); kdDebug() << "GROUP: " << groupName << endl;; } KListViewItem * groupLVI = new KListViewItem( settingsWidget->m_settingsList, groupName ); @@ -144,27 +144,27 @@ void ResourceGroupwiseConfig::slotViewUserSettings() std::vector::const_iterator it2; for( it2 = setting.begin(); it2 != setting.end(); ++it2 ) { - QString setting, value; + TQString setting, value; bool locked = false; - setting = QString::fromUtf8( (*it2)->field.c_str() ); + setting = TQString::fromUtf8( (*it2)->field.c_str() ); if ( (*it2)->value ) { - value = QString::fromUtf8( (*it2)->value->c_str() ); + value = TQString::fromUtf8( (*it2)->value->c_str() ); } if ( (*it2)->locked ) locked = *((*it2)->locked); kdDebug() << " SETTING: " << setting << " value : " << value << (locked ? "locked" : " not locked " ) << endl; - KListViewItem * settingLVI = new KListViewItem( groupLVI, QString::null, setting, value, (locked ? "locked" : " not locked " ) ); + KListViewItem * settingLVI = new KListViewItem( groupLVI, TQString::null, setting, value, (locked ? "locked" : " not locked " ) ); if ( !locked ) settingLVI->setRenameEnabled( 2, true ); } } dialog->show(); - if ( dialog->exec() == QDialog::Accepted ) + if ( dialog->exec() == TQDialog::Accepted ) { - QMap settings = settingsWidget->dirtySettings(); + TQMap settings = settingsWidget->dirtySettings(); mResource->modifyUserSettings( settings ); } } -- cgit v1.2.1