summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Martin <notmart@gmail.com>2015-07-21 14:36:59 (GMT)
committerMarco Martin <notmart@gmail.com>2015-07-21 14:36:59 (GMT)
commit9c9a928e12bf42943d0b3a83712654c6d5ccb82a (patch)
treee049cb792d54d5a8fb6888680b66a399da42b241
parentabd30fb774f6d0cd5abf93019f652c0ca54778f4 (diff)
directly use needed files from ui
don't link to okularpart, it won't be able to find it where it's installed (under plugins)
-rw-r--r--active/components/CMakeLists.txt4
-rw-r--r--active/components/okularplugin.cpp1
2 files changed, 4 insertions, 1 deletions
diff --git a/active/components/CMakeLists.txt b/active/components/CMakeLists.txt
index 74ad116..8e83a43 100644
--- a/active/components/CMakeLists.txt
+++ b/active/components/CMakeLists.txt
@@ -12,6 +12,8 @@ set(okular_SRCS
okularplugin.cpp
${CMAKE_SOURCE_DIR}/ui/guiutils.cpp
${CMAKE_SOURCE_DIR}/ui/tocmodel.cpp
+ ${CMAKE_SOURCE_DIR}/ui/pagepainter.cpp
+ ${CMAKE_BINARY_DIR}/settings.cpp
pageitem.cpp
documentitem.cpp
thumbnailitem.cpp
@@ -25,7 +27,7 @@ target_link_libraries(okularplugin
Qt5::Xml
Qt5::Svg
okularcore
- okularpart
+ KF5::KDELibs4Support
)
install(TARGETS okularplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/okular)
diff --git a/active/components/okularplugin.cpp b/active/components/okularplugin.cpp
index 4d29079..d124622 100644
--- a/active/components/okularplugin.cpp
+++ b/active/components/okularplugin.cpp
@@ -24,6 +24,7 @@
#include "thumbnailitem.h"
#include <QtQml/QQmlEngine>
+#include <QPluginLoader>
void OkularPlugin::registerTypes(const char *uri)
{