Changeset View
Changeset View
Standalone View
Standalone View
generators/xps/generator_xps.cpp
Show First 20 Lines • Show All 2062 Lines • ▼ Show 20 Line(s) | |||||
2063 | } | 2063 | } | ||
2064 | 2064 | | |||
2065 | XpsGenerator::XpsGenerator( QObject *parent, const QVariantList &args ) | 2065 | XpsGenerator::XpsGenerator( QObject *parent, const QVariantList &args ) | ||
2066 | : Okular::Generator( parent, args ), m_xpsFile( nullptr ) | 2066 | : Okular::Generator( parent, args ), m_xpsFile( nullptr ) | ||
2067 | { | 2067 | { | ||
2068 | setFeature( TextExtraction ); | 2068 | setFeature( TextExtraction ); | ||
2069 | setFeature( PrintNative ); | 2069 | setFeature( PrintNative ); | ||
2070 | setFeature( PrintToFile ); | 2070 | setFeature( PrintToFile ); | ||
2071 | // activate the threaded rendering iif: | | |||
2072 | // 1) QFontDatabase says so | | |||
2073 | // 2) Qt >= 4.4.0 (see Trolltech task ID: 169502) | | |||
2074 | // 3) Qt >= 4.4.2 (see Trolltech task ID: 215090) | | |||
2075 | if ( QFontDatabase::supportsThreadedFontRendering() ) | | |||
2076 | setFeature( Threaded ); | 2071 | setFeature( Threaded ); | ||
2077 | userMutex(); | 2072 | userMutex(); | ||
2078 | } | 2073 | } | ||
2079 | 2074 | | |||
2080 | XpsGenerator::~XpsGenerator() | 2075 | XpsGenerator::~XpsGenerator() | ||
2081 | { | 2076 | { | ||
2082 | } | 2077 | } | ||
2083 | 2078 | | |||
▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines |