Fix build of mobipocket backend

This commit is contained in:
Martin T. H. Sandsmark 2016-06-18 19:34:55 +02:00
parent 32b62e919a
commit b2ffcab043
4 changed files with 7 additions and 6 deletions

View file

@ -131,7 +131,6 @@ endif(EPUB_FOUND)
add_subdirectory(txt)
message("KF5 enable mobipocket generator")
#if(QMOBIPOCKET_FOUND)
# add_subdirectory(mobipocket)
#endif()
if(QMOBIPOCKET_FOUND)
add_subdirectory(mobipocket)
endif()

View file

@ -10,7 +10,7 @@ set(okularGenerator_mobi_PART_SRCS
okular_add_generator(okularGenerator_mobi ${okularGenerator_mobi_PART_SRCS})
target_link_libraries(okularGenerator_mobi okularcore Qt5::Gui ${QMOBIPOCKET_LIBRARIES})
target_link_libraries(okularGenerator_mobi okularcore ${QMOBIPOCKET_LIBRARIES} KF5::I18n Qt5::Gui)
########### install files ###############

View file

@ -92,7 +92,7 @@ QTextDocument* Converter::convert( const QString &fileName )
it.next();
QUrl u(it.key());
// external or internal link
if (!u.isRelative()) emit addAction(new Okular::BrowseAction(it.key()), it.value().first, it.value().second);
if (!u.isRelative()) emit addAction(new Okular::BrowseAction(QUrl(it.key())), it.value().first, it.value().second);
else {
// is there valid target?
if (!targets.contains( it.key() ) || !targets[it.key()].isValid()) continue;

View file

@ -27,3 +27,5 @@ void MobiGenerator::addPages( KConfigDialog* dlg )
dlg->addPage( widget, generalSettings(), i18n("Mobipocket"), "application-x-mobipocket-ebook", i18n("Mobipocket Backend Configuration") );
}
#include "generator_mobi.moc"