Commit 8a1bef81 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Remove poppler 0.80 ifdefs since we require 0.86 now

parent 6b08af75
......@@ -5,17 +5,6 @@ add_subdirectory( conf )
set(CMAKE_REQUIRED_LIBRARIES Poppler::Qt5 Qt5::Core Qt5::Gui)
check_cxx_source_compiles("
#include <poppler-qt5.h>
int main()
{
Poppler::FontInfo info;
QString substituteName = info.substituteName();
(void)substituteName;
return 0;
}
" HAVE_POPPLER_0_80)
check_cxx_source_compiles("
#include <poppler-form.h>
int main()
......
/* Defined if we have the 0.80 version of the Poppler library */
#cmakedefine HAVE_POPPLER_0_80 1
/* Defined if we have the 0.87 version of the Poppler library */
#cmakedefine HAVE_POPPLER_0_87 1
......@@ -235,11 +235,7 @@ void PopplerFormFieldText::setText(const QString &text)
void PopplerFormFieldText::setAppearanceText(const QString &text)
{
#ifdef HAVE_POPPLER_0_80
m_field->setAppearanceText(text);
#else
Q_UNUSED(text);
#endif
}
bool PopplerFormFieldText::isPassword() const
......
......@@ -933,9 +933,7 @@ Okular::FontInfo::List PDFGenerator::fontsForPage(int page)
for (const Poppler::FontInfo &font : qAsConst(fonts)) {
Okular::FontInfo of;
of.setName(font.name());
#ifdef HAVE_POPPLER_0_80
of.setSubstituteName(font.substituteName());
#endif
of.setType(convertPopplerFontInfoTypeToOkularFontInfoType(font.type()));
of.setEmbedType(embedTypeForPopplerFontInfo(font));
of.setFile(font.file());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment