mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-05 23:49:20 +00:00
Fix build of mobipocket backend
This commit is contained in:
parent
32b62e919a
commit
b2ffcab043
|
@ -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()
|
||||
|
|
|
@ -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 ###############
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue