summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymond Wooninck <tittiatcoke@gmail.com>2014-10-05 11:29:29 (GMT)
committerRaymond Wooninck <tittiatcoke@gmail.com>2014-10-05 11:29:29 (GMT)
commit7e3e82693e2849f0c6231b0cf2adf6dda2d96de2 (patch)
treea13fb9918b06d1b2d18661abe98dca8b6cd74cf8
parent596f84fe17b40df4a511434fe237514850686c94 (diff)
Make the generators build
-rw-r--r--generators/djvu/CMakeLists.txt4
-rw-r--r--generators/djvu/generator_djvu.cpp7
-rw-r--r--generators/spectre/CMakeLists.txt4
-rw-r--r--generators/spectre/generator_ghostview.cpp7
4 files changed, 12 insertions, 10 deletions
diff --git a/generators/djvu/CMakeLists.txt b/generators/djvu/CMakeLists.txt
index 8ca545c..d6cf843 100644
--- a/generators/djvu/CMakeLists.txt
+++ b/generators/djvu/CMakeLists.txt
@@ -13,9 +13,9 @@ set(okularGenerator_djvu_SRCS
)
-kde4_add_plugin(okularGenerator_djvu ${okularGenerator_djvu_SRCS})
+add_library(okularGenerator_djvu MODULE ${okularGenerator_djvu_SRCS})
-target_link_libraries(okularGenerator_djvu okularcore ${DJVULIBRE_LIBRARY} ${KDE4_KDEUI_LIBS} ${QT_QTXML_LIBRARY})
+target_link_libraries(okularGenerator_djvu okularcore ${DJVULIBRE_LIBRARY} KF5::KDELibs4Support Qt5::Gui Qt5::PrintSupport)
install(TARGETS okularGenerator_djvu DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/generators/djvu/generator_djvu.cpp b/generators/djvu/generator_djvu.cpp
index 1254685..4656084 100644
--- a/generators/djvu/generator_djvu.cpp
+++ b/generators/djvu/generator_djvu.cpp
@@ -23,12 +23,13 @@
#include <qpixmap.h>
#include <qstring.h>
#include <quuid.h>
-#include <QtGui/QPrinter>
+#include <QPrinter>
#include <KAboutData>
#include <QtCore/QDebug>
#include <klocale.h>
#include <qtemporaryfile.h>
+#include <KLocalizedString>
#include <QDir>
static void recurseCreateTOC( QDomDocument &maindoc, const QDomNode &parent, QDomNode &parentDestination, KDjVu *djvu )
@@ -70,9 +71,9 @@ static void recurseCreateTOC( QDomDocument &maindoc, const QDomNode &parent, QDo
static KAboutData createAboutData()
{
KAboutData aboutData(
- "okular_djvu",
+ QStringLiteral("okular_djvu"),
i18n( "DjVu Backend" ),
- "0.2.3",
+ QStringLiteral("0.2.3"),
i18n( "DjVu backend based on DjVuLibre." ),
KAboutLicense::GPL,
i18n( "© 2006-2008 Pino Toscano" ));
diff --git a/generators/spectre/CMakeLists.txt b/generators/spectre/CMakeLists.txt
index 6711971..a6c5b9c 100644
--- a/generators/spectre/CMakeLists.txt
+++ b/generators/spectre/CMakeLists.txt
@@ -20,9 +20,9 @@ ki18n_wrap_ui(okularGenerator_ghostview_SRCS
kconfig_add_kcfg_files(okularGenerator_ghostview_SRCS conf/gssettings.kcfgc )
-kde4_add_plugin(okularGenerator_ghostview ${okularGenerator_ghostview_SRCS})
+add_library(okularGenerator_ghostview MODULE ${okularGenerator_ghostview_SRCS})
-target_link_libraries(okularGenerator_ghostview okularcore ${LIBSPECTRE_LIBRARY} ${KDE4_KDEUI_LIBS} ${QT_QTXML_LIBRARY})
+target_link_libraries(okularGenerator_ghostview okularcore ${LIBSPECTRE_LIBRARY} KF5::KDELibs4Support Qt5::Xml Qt5::PrintSupport)
install(TARGETS okularGenerator_ghostview DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/generators/spectre/generator_ghostview.cpp b/generators/spectre/generator_ghostview.cpp
index 1ee5a4b..778735c 100644
--- a/generators/spectre/generator_ghostview.cpp
+++ b/generators/spectre/generator_ghostview.cpp
@@ -15,7 +15,7 @@
#include <qpainter.h>
#include <qpixmap.h>
#include <qsize.h>
-#include <QtGui/QPrinter>
+#include <QPrinter>
#include <KAboutData>
#include <kconfigdialog.h>
@@ -25,6 +25,7 @@
#include <ktemporaryfile.h>
#include <KDebug>
#include <QDir>
+#include <KLocalizedString>
#include <core/document.h>
#include <core/page.h>
@@ -39,9 +40,9 @@
static KAboutData createAboutData()
{
KAboutData aboutData(
- "okular_ghostview",
+ QStringLiteral("okular_ghostview"),
i18n( "PS Backend" ),
- "0.1.7",
+ QStringLiteral("0.1.7"),
i18n( "A PostScript file renderer." ),
KAboutLicense::GPL,
i18n( "© 2007-2008 Albert Astals Cid" ),