Remove poppler 0.80 ifdefs since we require 0.86 now

remotes/origin/work/aacid/shorcutslost_2008
Albert Astals Cid 6 years ago
parent 6b08af754f
commit 8a1bef81f8
  1. 11
      generators/poppler/CMakeLists.txt
  2. 3
      generators/poppler/config-okular-poppler.h.cmake
  3. 4
      generators/poppler/formfields.cpp
  4. 2
      generators/poppler/generator_pdf.cpp

@ -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()

@ -1,6 +1,3 @@
/* 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());

Loading…
Cancel
Save