From 56721aac86c9ae5253abac8962474c8d1a7e648a Mon Sep 17 00:00:00 2001 From: zautrix Date: Wed, 07 Jul 2004 11:56:39 +0000 Subject: Changes for compiling on desktop --- (limited to 'microkde/kdecore') diff --git a/microkde/kdecore/klibloader.cpp b/microkde/kdecore/klibloader.cpp index c07d50f..c091e05 100644 --- a/microkde/kdecore/klibloader.cpp +++ b/microkde/kdecore/klibloader.cpp @@ -40,14 +40,11 @@ #ifndef DESKTOP_VERSION #include #include +#else +#include #endif -/*US -#ifdef Q_WS_X11 -#include -#include -#endif -*/ + template class QAsciiDict; #include //getenv @@ -192,7 +189,6 @@ void* KLibrary::symbol( const char* symname ) const if ( !sym ) { //US kdWarning(150) << "KLibrary: " << lt_dlerror() << endl; - kdWarning(150) << "KLibrary: " << m_libname << ", symbol:" << symname << " not found " << endl; return 0; } @@ -477,8 +473,11 @@ KLibrary* KLibLoader::library( const char *name ) QString libfile = findLibrary( name ); if ( libfile.isEmpty() ) return 0; - +#ifdef DESKTOP_VERSION + QLibrary *qlib = new QLibrary( libfile.latin1() ); +#else QLibrary *qlib = new QLibrary( libfile.latin1(), QLibrary::Immediately ); +#endif //US lt_dlhandle handle = lt_dlopen( libfile.latin1() ); //US if ( !handle ) @@ -599,6 +598,7 @@ void KLibLoader::close_pending(KLibWrapPrivate *wrap) // kdDebug(150) << "try to dlclose " << wrap->name << ": yes, done." << endl; +#if 0 #ifndef Q_WS_QWS if ( !deleted_one ) { /* Only do the hack once in this loop. @@ -628,6 +628,7 @@ void KLibLoader::close_pending(KLibWrapPrivate *wrap) // FIXME(E): Implement in Qt Embedded #endif +#endif // 0 deleted_one = true; //US lt_dlclose(wrap->handle); wrap->handle->unload(); diff --git a/microkde/kdecore/kstandarddirs.cpp b/microkde/kdecore/kstandarddirs.cpp index 1a1e027..7f51d78 100644 --- a/microkde/kdecore/kstandarddirs.cpp +++ b/microkde/kdecore/kstandarddirs.cpp @@ -43,7 +43,6 @@ #include #include #include -#include #include "kstandarddirs.h" #include "kconfig.h" @@ -1225,7 +1224,7 @@ void KStandardDirs::addKDEDefaults() } //US kdedirList.append(KDEDIR); //US for embedded, add qtopia dir as kdedir - kdedirList.append(QPEApplication::qpeDir()); + kdedirList.append(readEnvPath("QPEDIR" )); #ifdef __KDE_EXECPREFIX QString execPrefix(__KDE_EXECPREFIX); -- cgit v0.9.0.2