summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2014-10-05 05:45:48 (GMT)
committerMontel Laurent <montel@kde.org>2014-10-05 05:45:48 (GMT)
commit596f84fe17b40df4a511434fe237514850686c94 (patch)
treeb73f9609e91a5a8a4ccb52ae6089b97b5d9edc76
parent406ee919bfaa0b08aa976b032cd05fdd97c77996 (diff)
Still compile error to reactivate it
-rw-r--r--generators/mobipocket/CMakeLists.txt4
-rw-r--r--generators/mobipocket/generator_mobi.cpp9
2 files changed, 7 insertions, 6 deletions
diff --git a/generators/mobipocket/CMakeLists.txt b/generators/mobipocket/CMakeLists.txt
index 910623b..abe9547 100644
--- a/generators/mobipocket/CMakeLists.txt
+++ b/generators/mobipocket/CMakeLists.txt
@@ -8,9 +8,9 @@ set(okularGenerator_mobi_PART_SRCS
converter.cpp
)
-kde4_add_plugin(okularGenerator_mobi ${okularGenerator_mobi_PART_SRCS})
+add_library(okularGenerator_mobi MODULE ${okularGenerator_mobi_PART_SRCS})
-target_link_libraries(okularGenerator_mobi okularcore ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} ${QMOBIPOCKET_LIBRARIES})
+target_link_libraries(okularGenerator_mobi okularcore KF5::KDELibs4Support Qt5::Gui ${QMOBIPOCKET_LIBRARIES})
install(TARGETS okularGenerator_mobi DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/generators/mobipocket/generator_mobi.cpp b/generators/mobipocket/generator_mobi.cpp
index 3dbadcb..a11d2c5 100644
--- a/generators/mobipocket/generator_mobi.cpp
+++ b/generators/mobipocket/generator_mobi.cpp
@@ -12,23 +12,24 @@
#include <KAboutData>
#include <kconfigdialog.h>
+#include <KLocalizedString>
static KAboutData createAboutData()
{
KAboutData aboutData(
- "okular_mobi",
+ QStringLiteral("okular_mobi"),
i18n("Mobipocket Backend"),
- "0.1.1",
+ QStringLiteral("0.1.1"),
i18n("A mobipocket backend"),
KAboutLicense::GPL,
i18n("© 2008-2009 Jakub Stachowski")
);
- aboutData.addAuthor(i18n("Jakub Stachowski"), KLocalizedString(),
- "qbast@go2.pl");
+ aboutData.addAuthor(i18n("Jakub Stachowski"), QString(), QLatin1String("qbast@go2.pl"));
return aboutData;
}
+
OKULAR_EXPORT_PLUGIN( MobiGenerator, createAboutData() )
MobiGenerator::MobiGenerator( QObject *parent, const QVariantList &args )