From 9f0d4ee43ce6f8c61abbd546376ef4f262261a1e Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 05 Jul 2004 08:15:56 +0000 Subject: Found and fixed problem of fastload of KAPI --- diff --git a/kaddressbook/mainembedded.cpp b/kaddressbook/mainembedded.cpp index c127601..dce6a88 100644 --- a/kaddressbook/mainembedded.cpp +++ b/kaddressbook/mainembedded.cpp @@ -50,17 +50,15 @@ int main( int argc, char **argv ) #endif KStandardDirs::setAppDir( QDir::convertSeparators(locateLocal("data", "kaddressbook"))); - KAddressBookMain* m = new KAddressBookMain(); + KAddressBookMain m ; //US MainWindow m; //US QObject::connect( &a, SIGNAL (appMessage ( const QCString &, const QByteArray & )),&m, SLOT(recieve( const QCString&, const QByteArray& ))); #ifndef DESKTOP_VERSION - a.showMainWidget(m ); - m->showMaximized(); + a.showMainWidget( &m ); #else a.setMainWidget(m ); m->show(); - //m->resize( 640, 480 ); #endif a.exec(); diff --git a/microkde/kdeui/kmainwindow.cpp b/microkde/kdeui/kmainwindow.cpp index 3a2a4d0..bd5a2cc 100644 --- a/microkde/kdeui/kmainwindow.cpp +++ b/microkde/kdeui/kmainwindow.cpp @@ -54,7 +54,7 @@ public: static bool no_query_exit = false; KMainWindow::KMainWindow( QWidget* parent, const char *name, WFlags f ) - : QMainWindow( parent, name, f )/*US, KXMLGUIBuilder( this ), helpMenu2( 0 ), factory_( 0 )*/ + : QMainWindow( parent, name ) /*LR, f ) with the default widget flag we cannot have fastload */ /*US, KXMLGUIBuilder( this ), helpMenu2( 0 ), factory_( 0 )*/ { mQToolBar = 0; initKMainWindow(name); -- cgit v0.9.0.2