summaryrefslogtreecommitdiffabout
path: root/kaddressbook/kaddressbookmain.cpp
Side-by-side diff
Diffstat (limited to 'kaddressbook/kaddressbookmain.cpp') (more/less context) (show whitespace changes)
-rw-r--r--kaddressbook/kaddressbookmain.cpp22
1 files changed, 12 insertions, 10 deletions
diff --git a/kaddressbook/kaddressbookmain.cpp b/kaddressbook/kaddressbookmain.cpp
index c417226..b317974 100644
--- a/kaddressbook/kaddressbookmain.cpp
+++ b/kaddressbook/kaddressbookmain.cpp
@@ -27,4 +27,7 @@
#include <qmessagebox.h>
-#include <qtoolbar.h>
+#include <q3toolbar.h>
#include <qapplication.h>
+//Added by qt3to4:
+#include <Q3CString>
+#include <QCloseEvent>
#else //KAB_EMBEDDED
@@ -44,5 +47,5 @@ KAddressBookMain::KAddressBookMain() : KMainWindow( 0, "abmain" )
#else //KAB_EMBEDDED
-//MOC_SKIP_BEGIN
+#ifndef Q_MOC_RUN
KAddressBookMain::KAddressBookMain() : DCOPObject( "KAddressBookIface" ), KMainWindow( 0 )
-//MOC_SKIP_END
+#endif
#endif //KAB_EMBEDDED
@@ -53,5 +56,5 @@ KAddressBookMain::KAddressBookMain() : DCOPObject( "KAddressBookIface" ), KMainW
// KABCore will fill the toolbar with menues and icons
- QMainWindow::ToolBarDock tbd;
- tbd = Top;
- iconToolBar = new QToolBar( this );
+ Qt::ToolBarDock tbd;
+ tbd = Qt::DockTop;
+ iconToolBar = new Q3ToolBar( this );
addToolBar (iconToolBar , tbd );
@@ -87,3 +90,3 @@ KAddressBookMain::KAddressBookMain() : DCOPObject( "KAddressBookIface" ), KMainW
#ifndef DESKTOP_VERSION
- QObject::connect(qApp, SIGNAL (appMessage ( const QCString &, const QByteArray & )), mCore, SLOT (receiveStart ( const QCString &, const QByteArray & )));
+ QObject::connect(qApp, SIGNAL (appMessage ( const Q3CString &, const QByteArray & )), mCore, SLOT (receiveStart ( const Q3CString &, const QByteArray & )));
#endif
@@ -237,5 +240,4 @@ void KAddressBookMain::closeEvent( QCloseEvent* ce )
-#ifndef KAB_EMBEDDED
-#include "kaddressbookmain.moc"
+#ifndef KAB_EMBEDDED_
+#include "moc_kaddressbookmain.cpp"
#endif //KAB_EMBEDDED
-