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 /kontact/plugins/kmail/kcmkmailsummary.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 'kontact/plugins/kmail/kcmkmailsummary.cpp')
-rw-r--r-- | kontact/plugins/kmail/kcmkmailsummary.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/kontact/plugins/kmail/kcmkmailsummary.cpp b/kontact/plugins/kmail/kcmkmailsummary.cpp index 02627c0fe..656ffe4e9 100644 --- a/kontact/plugins/kmail/kcmkmailsummary.cpp +++ b/kontact/plugins/kmail/kcmkmailsummary.cpp @@ -21,8 +21,8 @@ without including the source code for Qt in the source distribution. */ -#include <qcheckbox.h> -#include <qlayout.h> +#include <tqcheckbox.h> +#include <tqlayout.h> #include <dcopref.h> @@ -41,19 +41,19 @@ extern "C" { - KDE_EXPORT KCModule *create_kmailsummary( QWidget *parent, const char * ) + KDE_EXPORT KCModule *create_kmailsummary( TQWidget *parent, const char * ) { return new KCMKMailSummary( parent, "kcmkmailsummary" ); } } -KCMKMailSummary::KCMKMailSummary( QWidget *parent, const char *name ) +KCMKMailSummary::KCMKMailSummary( TQWidget *parent, const char *name ) : KCModule( parent, name ) { initGUI(); - connect( mFolderView, SIGNAL( clicked( QListViewItem* ) ), SLOT( modified() ) ); - connect( mFullPath, SIGNAL( toggled( bool ) ), SLOT( modified() ) ); + connect( mFolderView, TQT_SIGNAL( clicked( TQListViewItem* ) ), TQT_SLOT( modified() ) ); + connect( mFullPath, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( modified() ) ); KAcceleratorManager::manage( this ); @@ -75,7 +75,7 @@ void KCMKMailSummary::modified() void KCMKMailSummary::initGUI() { - QVBoxLayout *layout = new QVBoxLayout( this, 0, KDialog::spacingHint() ); + TQVBoxLayout *layout = new TQVBoxLayout( this, 0, KDialog::spacingHint() ); mFolderView = new KListView( this ); mFolderView->setRootIsDecorated( true ); @@ -83,7 +83,7 @@ void KCMKMailSummary::initGUI() mFolderView->addColumn( i18n( "Summary" ) ); - mFullPath = new QCheckBox( i18n( "Show full path for folders" ), this ); + mFullPath = new TQCheckBox( i18n( "Show full path for folders" ), this ); layout->addWidget( mFolderView ); layout->addWidget( mFullPath ); @@ -93,32 +93,32 @@ void KCMKMailSummary::initFolders() { DCOPRef kmail( "kmail", "KMailIface" ); - QStringList folderList; + TQStringList folderList; kmail.call( "folderList" ).get( folderList ); mFolderView->clear(); mFolderMap.clear(); - QStringList::Iterator it; + TQStringList::Iterator it; for ( it = folderList.begin(); it != folderList.end(); ++it ) { - QString displayName; + TQString displayName; if ( (*it) == "/Local" ) displayName = i18n( "prefix for local folders", "Local" ); else { - DCOPRef folderRef = kmail.call( "getFolder(QString)", *it ); + DCOPRef folderRef = kmail.call( "getFolder(TQString)", *it ); folderRef.call( "displayName()" ).get( displayName ); } if ( (*it).contains( '/' ) == 1 ) { if ( mFolderMap.find( *it ) == mFolderMap.end() ) - mFolderMap.insert( *it, new QListViewItem( mFolderView, + mFolderMap.insert( *it, new TQListViewItem( mFolderView, displayName ) ); } else { const int pos = (*it).findRev( '/' ); - const QString parentFolder = (*it).left( pos ); + const TQString parentFolder = (*it).left( pos ); mFolderMap.insert( *it, - new QCheckListItem( mFolderMap[ parentFolder ], + new TQCheckListItem( mFolderMap[ parentFolder ], displayName, - QCheckListItem::CheckBox ) ); + TQCheckListItem::CheckBox ) ); } } } @@ -128,15 +128,15 @@ void KCMKMailSummary::loadFolders() KConfig config( "kcmkmailsummaryrc" ); config.setGroup( "General" ); - QStringList folders; + TQStringList folders; if ( !config.hasKey( "ActiveFolders" ) ) folders << "/Local/inbox"; else folders = config.readListEntry( "ActiveFolders" ); - QMap<QString, QListViewItem*>::Iterator it; + TQMap<TQString, TQListViewItem*>::Iterator it; for ( it = mFolderMap.begin(); it != mFolderMap.end(); ++it ) { - if ( QCheckListItem *qli = dynamic_cast<QCheckListItem*>( it.data() ) ) { + if ( TQCheckListItem *qli = dynamic_cast<TQCheckListItem*>( it.data() ) ) { if ( folders.contains( it.key() ) ) { qli->setOn( true ); mFolderView->ensureItemVisible( it.data() ); @@ -153,11 +153,11 @@ void KCMKMailSummary::storeFolders() KConfig config( "kcmkmailsummaryrc" ); config.setGroup( "General" ); - QStringList folders; + TQStringList folders; - QMap<QString, QListViewItem*>::Iterator it; + TQMap<TQString, TQListViewItem*>::Iterator it; for ( it = mFolderMap.begin(); it != mFolderMap.end(); ++it ) - if ( QCheckListItem *qli = dynamic_cast<QCheckListItem*>( it.data() ) ) + if ( TQCheckListItem *qli = dynamic_cast<TQCheckListItem*>( it.data() ) ) if ( qli->isOn() ) folders.append( it.key() ); |