summaryrefslogtreecommitdiffstats
path: root/kontact/plugins/kmail/kcmkmailsummary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kontact/plugins/kmail/kcmkmailsummary.cpp')
-rw-r--r--kontact/plugins/kmail/kcmkmailsummary.cpp44
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() );