-rw-r--r-- | kaddressbook/kcmconfigs/addresseewidget.cpp | 1 | ||||
-rw-r--r-- | kaddressbook/mainembedded.cpp | 7 |
2 files changed, 5 insertions, 3 deletions
diff --git a/kaddressbook/kcmconfigs/addresseewidget.cpp b/kaddressbook/kcmconfigs/addresseewidget.cpp index f84b2ba..eb5bdd9 100644 --- a/kaddressbook/kcmconfigs/addresseewidget.cpp +++ b/kaddressbook/kcmconfigs/addresseewidget.cpp | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <qlayout.h> | 26 | #include <qlayout.h> |
27 | #include <qlistbox.h> | 27 | #include <qlistbox.h> |
28 | #include <qpushbutton.h> | 28 | #include <qpushbutton.h> |
29 | #include <qapplication.h> | ||
29 | 30 | ||
30 | #include <kbuttonbox.h> | 31 | #include <kbuttonbox.h> |
31 | #include <kcombobox.h> | 32 | #include <kcombobox.h> |
diff --git a/kaddressbook/mainembedded.cpp b/kaddressbook/mainembedded.cpp index dce6a88..cf1fd3e 100644 --- a/kaddressbook/mainembedded.cpp +++ b/kaddressbook/mainembedded.cpp | |||
@@ -45,8 +45,9 @@ int main( int argc, char **argv ) | |||
45 | KGlobal::iconLoader()->setIconPath(QString(getenv("QPEDIR"))+"/pics/kdepim/kaddressbook/icons16/"); | 45 | KGlobal::iconLoader()->setIconPath(QString(getenv("QPEDIR"))+"/pics/kdepim/kaddressbook/icons16/"); |
46 | #else | 46 | #else |
47 | QString fileName ; | 47 | QString fileName ; |
48 | fileName = qApp->applicationDirPath () + "/kdepim/kaddressbook/"; | 48 | fileName = qApp->applicationDirPath () + "/kdepim/kaddressbook/icons22/"; |
49 | KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName)); | 49 | KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName)); |
50 | QApplication::addLibraryPath ( qApp->applicationDirPath () ); | ||
50 | 51 | ||
51 | #endif | 52 | #endif |
52 | KStandardDirs::setAppDir( QDir::convertSeparators(locateLocal("data", "kaddressbook"))); | 53 | KStandardDirs::setAppDir( QDir::convertSeparators(locateLocal("data", "kaddressbook"))); |
@@ -57,8 +58,8 @@ int main( int argc, char **argv ) | |||
57 | #ifndef DESKTOP_VERSION | 58 | #ifndef DESKTOP_VERSION |
58 | a.showMainWidget( &m ); | 59 | a.showMainWidget( &m ); |
59 | #else | 60 | #else |
60 | a.setMainWidget(m ); | 61 | a.setMainWidget( &m ); |
61 | m->show(); | 62 | m.show(); |
62 | #endif | 63 | #endif |
63 | a.exec(); | 64 | a.exec(); |
64 | 65 | ||