-rw-r--r-- | kaddressbook/mainembedded.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kaddressbook/mainembedded.cpp b/kaddressbook/mainembedded.cpp index c127601..dce6a88 100644 --- a/kaddressbook/mainembedded.cpp +++ b/kaddressbook/mainembedded.cpp @@ -47,23 +47,21 @@ int main( int argc, char **argv ) QString fileName ; fileName = qApp->applicationDirPath () + "/kdepim/kaddressbook/"; KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName)); #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(); } qDebug("KA: Bye! "); } |