From: Jarosław Staniek Date: Tue, 25 Mar 2008 12:06:18 +0000 (+0000) Subject: fix exports and use dolphinprivatelib in the part X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/48f122fa6cc58410bdff3c435c6a5a3c483da355?ds=inline fix exports and use dolphinprivatelib in the part svn path=/trunk/KDE/kdebase/apps/; revision=789835 --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7ec2b5c56..94f512298 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -160,13 +160,14 @@ set(kcm_dolphin_PART_SRCS columnviewsettingspage.cpp detailsviewsettingspage.cpp dolphinfontrequester.cpp - dolphinsettings.cpp +# dolphinsettings.cpp generalviewsettingspage.cpp iconsizedialog.cpp iconsviewsettingspage.cpp pixmapviewer.cpp viewsettingspagebase.cpp - viewproperties.cpp) +# viewproperties.cpp +) kde4_add_kcfg_files(kcm_dolphin_PART_SRCS dolphin_columnmodesettings.kcfgc @@ -177,7 +178,7 @@ kde4_add_kcfg_files(kcm_dolphin_PART_SRCS kde4_add_plugin(kcm_dolphin ${kcm_dolphin_PART_SRCS}) -target_link_libraries(kcm_dolphin ${KDE4_KDEUI_LIBS} ${KDE4_KFILE_LIBS} ) +target_link_libraries(kcm_dolphin ${KDE4_KDEUI_LIBS} ${KDE4_KFILE_LIBS} dolphinprivate) if (Nepomuk_FOUND) target_link_libraries(kcm_dolphin ${NEPOMUK_LIBRARIES}) endif (Nepomuk_FOUND) diff --git a/src/libdolphin_export.h b/src/libdolphin_export.h index 99af8bed2..4630398b8 100644 --- a/src/libdolphin_export.h +++ b/src/libdolphin_export.h @@ -26,16 +26,14 @@ /* needed, because e.g. Q_OS_UNIX is so frequently used */ #include -#ifdef MAKE_DOLPHINPRIVATE_LIB -# define LIBDOLPHINPRIVATE_EXPORT KDE_EXPORT -#else -# ifdef Q_OS_WIN -# define LIBDOLPHINPRIVATE_EXPORT KDE_IMPORT -# else +#ifndef LIBDOLPHINPRIVATE_EXPORT +# if defined(MAKE_DOLPHINPRIVATE_LIB) + /* We are building this library */ # define LIBDOLPHINPRIVATE_EXPORT KDE_EXPORT +# else + /* We are using this library */ +# define LIBDOLPHINPRIVATE_EXPORT KDE_IMPORT # endif #endif - #endif - diff --git a/src/tagcloud/tagcloud.h b/src/tagcloud/tagcloud.h index 2c641e7fb..9710ca9b7 100644 --- a/src/tagcloud/tagcloud.h +++ b/src/tagcloud/tagcloud.h @@ -24,7 +24,6 @@ #include #include -#include #include @@ -34,7 +33,7 @@ class QMouseEvent; class QEvent; namespace Nepomuk { - class NEPOMUK_EXPORT TagCloud : public QFrame + class TagCloud : public QFrame { Q_OBJECT