summaryrefslogtreecommitdiffstats
path: root/kresources/lib/folderconfig.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/lib/folderconfig.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/lib/folderconfig.cpp')
-rw-r--r--kresources/lib/folderconfig.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kresources/lib/folderconfig.cpp b/kresources/lib/folderconfig.cpp
index b02654945..25fd7d826 100644
--- a/kresources/lib/folderconfig.cpp
+++ b/kresources/lib/folderconfig.cpp
@@ -32,35 +32,35 @@
#include <kdebug.h>
#include <kdialog.h>
-#include <qlayout.h>
-#include <qgroupbox.h>
-#include <qpushbutton.h>
-#include <qcombobox.h>
-#include <qhbox.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqgroupbox.h>
+#include <tqpushbutton.h>
+#include <tqcombobox.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
using namespace KPIM;
-FolderConfig::FolderConfig( QWidget *parent )
- : QWidget( parent ), mFolderLister( 0 )
+FolderConfig::FolderConfig( TQWidget *parent )
+ : TQWidget( parent ), mFolderLister( 0 )
{
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ TQBoxLayout *topLayout = new TQVBoxLayout( this );
topLayout->addSpacing( KDialog::spacingHint() );
- QGroupBox *topBox = new QGroupBox( 1, Horizontal, i18n("Folder Selection"),
+ TQGroupBox *topBox = new TQGroupBox( 1, Horizontal, i18n("Folder Selection"),
this );
topLayout->addWidget( topBox );
- QPushButton *button = new QPushButton( i18n("Update Folder List"), topBox );
- connect( button, SIGNAL( clicked() ), SIGNAL( updateFoldersClicked() ) );
+ TQPushButton *button = new TQPushButton( i18n("Update Folder List"), topBox );
+ connect( button, TQT_SIGNAL( clicked() ), TQT_SIGNAL( updateFoldersClicked() ) );
mFolderList = new FolderListView( topBox );
-/* QHBox *writeBox = new QHBox( topBox );
+/* TQHBox *writeBox = new TQHBox( topBox );
- new QLabel( i18n("Write to:"), writeBox );
+ new TQLabel( i18n("Write to:"), writeBox );
- mWriteCombo = new QComboBox( writeBox );*/
+ mWriteCombo = new TQComboBox( writeBox );*/
}
FolderConfig::~FolderConfig()
@@ -71,8 +71,8 @@ void FolderConfig::setFolderLister( FolderLister *f )
{
mFolderLister = f;
- QValueList<FolderListView::Property> types;
- QValueList<FolderLister::ContentType> suptypes( mFolderLister->supportedTypes() );
+ TQValueList<FolderListView::Property> types;
+ TQValueList<FolderLister::ContentType> suptypes( mFolderLister->supportedTypes() );
if ( suptypes.contains( FolderLister::Event ) ) types << FolderListView::Event;
if ( suptypes.contains( FolderLister::Todo ) ) types << FolderListView::Todo;
if ( suptypes.contains( FolderLister::Journal ) ) types << FolderListView::Journal;
@@ -81,7 +81,7 @@ void FolderConfig::setFolderLister( FolderLister *f )
if ( suptypes.contains( FolderLister::Unknown ) ) types << FolderListView::Unknown;
mFolderList->setEnabledTypes( types );
- connect( mFolderLister, SIGNAL( foldersRead() ), SLOT( updateFolderList() ) );
+ connect( mFolderLister, TQT_SIGNAL( foldersRead() ), TQT_SLOT( updateFolderList() ) );
}
void FolderConfig::retrieveFolderList( const KURL &url )
@@ -100,7 +100,7 @@ void FolderConfig::updateFolderList()
{
mFolderList->clear();
- QStringList write;
+ TQStringList write;
if ( !mOldFolderListerURL.isEmpty() && mFolderLister->adaptor() ) {
mFolderLister->adaptor()->setBaseURL( mOldFolderListerURL );
@@ -134,11 +134,11 @@ void FolderConfig::updateFolderList()
void FolderConfig::saveSettings()
{
- QPtrList<QListViewItem> lst;
+ TQPtrList<TQListViewItem> lst;
FolderLister::Entry::List folders;
- QListViewItemIterator it( mFolderList );
+ TQListViewItemIterator it( mFolderList );
while ( it.current() ) {
FolderListItem *item = dynamic_cast<FolderListItem *>( it.current() );
if ( item ) {