diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kresources/groupwise/kcal_resourcegroupwiseconfig.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-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/groupwise/kcal_resourcegroupwiseconfig.cpp')
-rw-r--r-- | kresources/groupwise/kcal_resourcegroupwiseconfig.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
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 <typeinfo> -#include <qlabel.h> -#include <qlayout.h> -#include <qcheckbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqcheckbox.h> #include <klocale.h> #include <klistview.h> @@ -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<QWidget*>(parent() ), "gwsettingswidget", true, i18n( "GroupWise Settings" ) ); -// QVBoxLayout * layout = new QVBoxLayout( dialog ); + KDialogBase * dialog = new KDialogBase( ::qt_cast<TQWidget*>(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<class ngwt__Custom *>::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<QString, QString> settings = settingsWidget->dirtySettings(); + TQMap<TQString, TQString> settings = settingsWidget->dirtySettings(); mResource->modifyUserSettings( settings ); } } |