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/slox/sloxfolderdialog.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/slox/sloxfolderdialog.cpp')
-rw-r--r-- | kresources/slox/sloxfolderdialog.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kresources/slox/sloxfolderdialog.cpp b/kresources/slox/sloxfolderdialog.cpp index b188fb2fa..4f17ea893 100644 --- a/kresources/slox/sloxfolderdialog.cpp +++ b/kresources/slox/sloxfolderdialog.cpp @@ -25,7 +25,7 @@ #include "sloxfolderdialog.h" #include "sloxfoldermanager.h" -SloxFolderDialog::SloxFolderDialog( SloxFolderManager *manager, FolderType type, QWidget *parent, const char *name ) : +SloxFolderDialog::SloxFolderDialog( SloxFolderManager *manager, FolderType type, TQWidget *parent, const char *name ) : KDialogBase( parent, name, true, i18n("Select Folder"), Ok|Cancel|User1, Ok, false, KGuiItem( i18n("Reload"), "reload" ) ), mManager( manager ), mFolderType( type ) @@ -37,23 +37,23 @@ SloxFolderDialog::SloxFolderDialog( SloxFolderManager *manager, FolderType type, mListView->addColumn( i18n("Folder ID"), 0 ); setMainWidget( mListView ); updateFolderView(); - connect( manager, SIGNAL( foldersUpdated() ), SLOT( updateFolderView() ) ); + connect( manager, TQT_SIGNAL( foldersUpdated() ), TQT_SLOT( updateFolderView() ) ); } SloxFolderDialog::~SloxFolderDialog() { - QMap<QString, SloxFolder*> folders = mManager->folders(); - QMap<QString, SloxFolder*>::Iterator it; + TQMap<TQString, SloxFolder*> folders = mManager->folders(); + TQMap<TQString, SloxFolder*>::Iterator it; for ( it = folders.begin(); it != folders.end(); ++it ) (*it)->item = 0; } void SloxFolderDialog::updateFolderView() { - QString selected = selectedFolder(); + TQString selected = selectedFolder(); mListView->clear(); - QMap<QString, SloxFolder*> folders = mManager->folders(); - QMap<QString, SloxFolder*>::Iterator it; + TQMap<TQString, SloxFolder*> folders = mManager->folders(); + TQMap<TQString, SloxFolder*>::Iterator it; for ( it = folders.begin(); it != folders.end(); ++it ) createFolderViewItem( *it ); setSelectedFolder( selected ); @@ -99,18 +99,18 @@ void SloxFolderDialog::createFolderViewItem( SloxFolder *folder ) } } -QString SloxFolderDialog::selectedFolder() const +TQString SloxFolderDialog::selectedFolder() const { - QListViewItem *item = mListView->selectedItem(); + TQListViewItem *item = mListView->selectedItem(); if ( item ) return item->text( 1 ); return "-1"; // OX default folder } -void SloxFolderDialog::setSelectedFolder( const QString &id ) +void SloxFolderDialog::setSelectedFolder( const TQString &id ) { - QMap<QString, SloxFolder*> folders = mManager->folders(); - QMap<QString, SloxFolder*>::Iterator it; + TQMap<TQString, SloxFolder*> folders = mManager->folders(); + TQMap<TQString, SloxFolder*>::Iterator it; for ( it = folders.begin(); it != folders.end(); ++it ) { if ( !(*it)->item ) continue; |