Merge branch 'master' into sebas/kplugins

This commit is contained in:
Sebastian Kügler 2013-07-30 01:09:40 +02:00
commit 839c271535
4 changed files with 19 additions and 12 deletions

View File

@ -136,22 +136,20 @@ kconfig_add_kcfg_files(plasma_LIB_SRCS data/kconfigxt/libplasma-theme-global.kcf
#)
kde4_add_library(plasma SHARED ${plasma_LIB_SRCS})
add_library(plasma SHARED ${plasma_LIB_SRCS})
target_link_libraries(plasma
${QT_QTUITOOLS_LIBRARY}
${QT_QTNETWORK_LIBRARY} ${QT_QTSQL_LIBRARY}
${QT_QTNETWORK_LIBRARY}
${QT_QTSQL_LIBRARY}
${Qt5Quick_LIBRARIES}
${KDE4_KDEUI_LIBS}
${ThreadWeaver_LIBRARIES}
${KAuth_LIBRARIES}
${KWindowSystem_LIBRARIES}
${PLASMA_EXTRA_LIBS}
KF5::KI18n
${KDE4Support_LIBRARIES}
KF5::KDE4Attic
${KDE4Support_LIBRARIES} # needed for KStandardDirs and KGlobal
)
#FIXME gpgme++ is in kdepimlibs, neeeds to be elsewhere
#FIXME gpgme++ is in kdepimlibs, needs to be elsewhere
target_link_libraries(plasma kdeclarative ${KArchive_LIBRARIES})
if(X11_FOUND)

View File

@ -11,11 +11,13 @@ qt4_add_dbus_adaptor (
platformstatus.h PlatformStatus
)
kde4_add_plugin( kded_platformstatus ${kded_platformstatus_SRCS} )
add_library(kded_platformstatus MODULE ${kded_platformstatus_SRCS} )
set_target_properties(kded_platformstatus PROPERTIES PREFIX "")
target_link_libraries(
kded_platformstatus
${KDE4_KDECORE_LIBS}
${KCore_LIBRARIES}
${KService_LIBRARIES}
${KCoreAddons_LIBRARIES}
${KDBusAddons_LIBRARIES}
Qt5::DBus

View File

@ -23,15 +23,18 @@ set(declarative_appletscript_SRCS
include_directories(${PHONON_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR}/common)
kde4_add_plugin(plasma_appletscript_declarative ${declarative_appletscript_SRCS})
add_library(plasma_appletscript_declarative MODULE ${declarative_appletscript_SRCS} )
set_target_properties(plasma_appletscript_declarative PROPERTIES PREFIX "")
target_link_libraries(plasma_appletscript_declarative
${KDE4_KIO_LIBS}
${KDE4Support_LIBRARIES}
${KDE4Attic_LIBRARIES}
${QT_QTSCRIPT_LIBRARY}
${Qt5Quick_LIBRARIES}
${Qt5Qml_LIBRARIES}
${QT_QTUITOOLS_LIBRARY}
${KDE4_KDECORE_LIBS}
${KCore_LIBRARIES}
plasma
kdeclarative
)

View File

@ -320,7 +320,11 @@ void WidgetExplorerPrivate::initRunningApplets()
// QObject::connect(containment, &Containment::appletRemoved, q, &WidgetExplorerPrivate::appletRemoved);
foreach (Applet *applet, containment->applets()) {
runningApplets[applet->pluginInfo().pluginName()]++;
if (applet->pluginInfo().isValid()) {
runningApplets[applet->pluginInfo().pluginName()]++;
} else {
qDebug() << "Invalid plugininfo. :(";
}
}
}