summaryrefslogtreecommitdiffabout
path: root/kaddressbook/xxportmanager.cpp
Side-by-side diff
Diffstat (limited to 'kaddressbook/xxportmanager.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/xxportmanager.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/kaddressbook/xxportmanager.cpp b/kaddressbook/xxportmanager.cpp
index 405f7ec..95b240d 100644
--- a/kaddressbook/xxportmanager.cpp
+++ b/kaddressbook/xxportmanager.cpp
@@ -29,8 +29,10 @@ $Id$
*/
#include <qlayout.h>
#include <qlist.h>
+//Added by qt3to4:
+#include <Q3VBoxLayout>
#include <kabc/addressbook.h>
#include <kabc/resource.h>
#include <kdebug.h>
@@ -216,20 +218,18 @@ void XXPortManager::loadPlugins()
continue;
}
#else //KAB_EMBEDDED
- QList<XXPortFactory> factorylist;
+ QList<XXPortFactory*> factorylist;
factorylist.append(static_cast<XXPortFactory*>(init_microkaddrbk_csv_xxport()));
factorylist.append(static_cast<XXPortFactory*>(init_microkaddrbk_kde2_xxport()));
factorylist.append(static_cast<XXPortFactory*>(init_microkaddrbk_vcard_xxport()));
//US factorylist.append(static_cast<XXPortFactory*>(init_microkaddrbk_opie_xxport()));
factorylist.append(static_cast<XXPortFactory*>(init_microkaddrbk_qtopia_xxport()));
factorylist.append(static_cast<XXPortFactory*>(init_microkaddrbk_sharpdtm_xxport()));
- QListIterator<XXPortFactory> it(factorylist);
- for ( ; it.current(); ++it )
- {
- XXPortFactory *xxportFactory = it.current();
+ for(QList<XXPortFactory*>::iterator it=factorylist.begin();it!=factorylist.end();++it) {
+ XXPortFactory *xxportFactory = *it;
#endif //KAB_EMBEDDED
XXPortObject *obj = xxportFactory->xxportObject( mCore->addressBook(), mCore );
if ( obj ) {
@@ -249,9 +249,9 @@ PreviewDialog::PreviewDialog( const KABC::Addressee &addr, QWidget *parent,
: KDialogBase( Plain, i18n( "Import this contact?" ), Ok | User1| User2, Ok, parent,
name, true, true ,i18n( "Import all!" ),i18n( "No" ) )
{
QWidget *page = plainPage();
- QVBoxLayout *layout = new QVBoxLayout( page, marginHint(), spacingHint() );
+ Q3VBoxLayout *layout = new Q3VBoxLayout( page, marginHint(), spacingHint() );
connect( this, SIGNAL( user1Clicked() ), this, SLOT ( slotClose() ) );
connect( this, SIGNAL( user2Clicked() ), this, SLOT ( slotCancel() ) );
KABC::AddresseeView *view = new KABC::AddresseeView( page );
@@ -263,8 +263,7 @@ PreviewDialog::PreviewDialog( const KABC::Addressee &addr, QWidget *parent,
showMaximized();
#endif
}
-#ifndef KAB_EMBEDDED
-#include "xxportmanager.moc"
+#ifndef KAB_EMBEDDED_
+#include "moc_xxportmanager.cpp"
#endif //KAB_EMBEDDED
-