diff --git a/kpdf/Makefile.am b/kpdf/Makefile.am index 9f1ca18d7..d10ca23af 100644 --- a/kpdf/Makefile.am +++ b/kpdf/Makefile.am @@ -41,7 +41,7 @@ shellrc_DATA = kpdf_shell.rc kde_module_LTLIBRARIES = libkpdfpart.la # the Part's source, library search path, and link libraries -libkpdfpart_la_SOURCES = kpdf_canvas.cpp kpdf_part.cpp kpdf_pagewidget.cc QOutputDev.cpp QOutputDevPixmap.cpp part.ui +libkpdfpart_la_SOURCES = QOutputDev.cpp QOutputDevPixmap.cpp kpdf_canvas.cpp kpdf_part.cpp kpdf_pagewidget.cc part.ui libkpdfpart_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries) libkpdfpart_la_LIBADD = ../xpdf/libxpdf.la $(LIB_KPARTS) $(LIB_KFILE) $(LIB_KDEPRINT) libkpdfpart_la_COMPILE_FIRST = ../aconf.h diff --git a/kpdf/QOutputDevPixmap.cpp b/kpdf/QOutputDevPixmap.cpp index d2d404ecb..7d9a1a73c 100644 --- a/kpdf/QOutputDevPixmap.cpp +++ b/kpdf/QOutputDevPixmap.cpp @@ -53,10 +53,12 @@ // Constants and macros //------------------------------------------------------------------------ +#ifndef KDE_USE_FINAL static inline QColor q_col ( const GfxRGB &rgb ) { return QColor ( lrint ( rgb. r * 255 ), lrint ( rgb. g * 255 ), lrint ( rgb. b * 255 )); } +#endif //------------------------------------------------------------------------ // Font substitutions @@ -70,7 +72,7 @@ struct QOutFontSubst { QFont::StyleHint m_hint; }; -static QOutFontSubst qStdFonts [] = { +static QOutFontSubst qPixmapStdFonts [] = { { "Helvetica", "Helvetica", false, false, QFont::Helvetica }, { "Helvetica-Oblique", "Helvetica", false, true, QFont::Helvetica }, { "Helvetica-Bold", "Helvetica", true, false, QFont::Helvetica }, @@ -96,7 +98,7 @@ QFont QOutputDevPixmap::matchFont ( GfxFont *gfxFont, fp_t m11, fp_t m12, fp_t m // build dict for std. fonts on first invocation if ( stdfonts. isEmpty ( )) { - for ( QOutFontSubst *ptr = qStdFonts; ptr-> m_name; ptr++ ) { + for ( QOutFontSubst *ptr = qPixmapStdFonts; ptr-> m_name; ptr++ ) { stdfonts. insert ( QString ( ptr-> m_name ), ptr ); } } diff --git a/kpdf/kpdf_part.cpp b/kpdf/kpdf_part.cpp index 11b5d1a98..4dc2c5c56 100644 --- a/kpdf/kpdf_part.cpp +++ b/kpdf/kpdf_part.cpp @@ -14,7 +14,6 @@ #include #include #include -#include #include #include