Be more explicit about Qt5::Widgets dependencies

Include when it's needed and explicitly link against it instead of
pulling it from KF5::WindowSystem
wilder-5.14
Aleix Pol 8 years ago
parent 562a5b8f91
commit ad130ff3bb
  1. 3
      containmentactions/switchdesktop/CMakeLists.txt
  2. 1
      containmentactions/switchwindow/CMakeLists.txt
  3. 1
      libkworkspace/kworkspace.cpp
  4. 1
      libtaskmanager/xwindowtasksmodel.h

@ -7,10 +7,11 @@ add_library(plasma_containmentactions_switchdesktop MODULE ${switchdesktop_SRCS}
kcoreaddons_desktop_to_json(plasma_containmentactions_switchdesktop plasma-containmentactions-switchdesktop.desktop)
target_link_libraries(plasma_containmentactions_switchdesktop
Qt5::Widgets
KF5::Plasma
KF5::WindowSystem
KF5::I18n
KF5::KIOCore
KF5::KIOCore
)
install(TARGETS plasma_containmentactions_switchdesktop DESTINATION ${KDE_INSTALL_PLUGINDIR})

@ -10,6 +10,7 @@ add_library(plasma_containmentactions_switchwindow MODULE ${switchwindow_SRCS})
kcoreaddons_desktop_to_json(plasma_containmentactions_switchwindow plasma-containmentactions-switchwindow.desktop)
target_link_libraries(plasma_containmentactions_switchwindow
Qt5::Widgets
KF5::Plasma
KF5::KIOCore
KF5::I18n

@ -20,7 +20,6 @@
#include "kworkspace.h"
#include "config-libkworkspace.h"
#include <QApplication>
#include <QDataStream>
#include <QFile>
#include <QFileInfo>

@ -26,6 +26,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
#include "taskmanager_export.h"
#include <QMimeData>
#include <qwindowdefs.h>
#include <netwm.h>

Loading…
Cancel
Save