summaryrefslogtreecommitdiffstats
path: root/konq-plugins/sidebar
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-12-31 12:15:57 +0100
committerSlávek Banko <slavek.banko@axis.cz>2021-12-31 12:15:57 +0100
commit762bfec2c849854fc0247acf8d2f107c27b17940 (patch)
treedddce1b148241162ab70667fcd28cd421c7c8f14 /konq-plugins/sidebar
parentc3d0b8b21f6a174cd45213b6c3dcd85b203aafaa (diff)
downloadtdeaddons-762bfec2c849854fc0247acf8d2f107c27b17940.tar.gz
tdeaddons-762bfec2c849854fc0247acf8d2f107c27b17940.zip
Add option WITH_GCC_VISIBILITY.
Fix building with hidden visibility. Add missing definitions to config.h.cmake. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'konq-plugins/sidebar')
-rw-r--r--konq-plugins/sidebar/metabar/src/metabar.cpp34
1 files changed, 18 insertions, 16 deletions
diff --git a/konq-plugins/sidebar/metabar/src/metabar.cpp b/konq-plugins/sidebar/metabar/src/metabar.cpp
index d479417..b2967a1 100644
--- a/konq-plugins/sidebar/metabar/src/metabar.cpp
+++ b/konq-plugins/sidebar/metabar/src/metabar.cpp
@@ -36,24 +36,26 @@ void Metabar::handlePreview(const KFileItemList &items)
}
-extern "C" {
- bool add_konqsidebar_metabar(TQString* fn, TQString* param, TQMap<TQString,TQString> *map) {
- Q_UNUSED(param);
-
- map->insert("Type", "Link");
- map->insert("Icon", "metabar");
- map->insert("Name", "Metabar");
- map->insert("Open", "true");
- map->insert("X-TDE-KonqSidebarModule","konqsidebar_metabar");
- fn->setLatin1("metabar%1.desktop");
- return true;
- }
+extern "C"
+{
+ KDE_EXPORT bool add_konqsidebar_metabar(TQString* fn, TQString* param, TQMap<TQString,TQString> *map)
+ {
+ Q_UNUSED(param);
+
+ map->insert("Type", "Link");
+ map->insert("Icon", "metabar");
+ map->insert("Name", "Metabar");
+ map->insert("Open", "true");
+ map->insert("X-TDE-KonqSidebarModule","konqsidebar_metabar");
+ fn->setLatin1("metabar%1.desktop");
+ return true;
+ }
}
extern "C"
{
- void* create_konqsidebar_metabar(TDEInstance *instance,TQObject *par,TQWidget *widp,TQString &desktopname,const char *name)
- {
- return new Metabar(instance,par,widp,desktopname,name);
- }
+ KDE_EXPORT void* create_konqsidebar_metabar(TDEInstance *instance,TQObject *par,TQWidget *widp,TQString &desktopname,const char *name)
+ {
+ return new Metabar(instance,par,widp,desktopname,name);
+ }
}