Changeset View
Changeset View
Standalone View
Standalone View
core/textdocumentgenerator.cpp
Show First 20 Lines • Show All 256 Lines • ▼ Show 20 Line(s) | 252 | { | |||
---|---|---|---|---|---|
257 | if ( mGeneralSettings ) { | 257 | if ( mGeneralSettings ) { | ||
258 | mFont = mGeneralSettings->font(); | 258 | mFont = mGeneralSettings->font(); | ||
259 | } | 259 | } | ||
260 | 260 | | |||
261 | q->setFeature( Generator::TextExtraction ); | 261 | q->setFeature( Generator::TextExtraction ); | ||
262 | q->setFeature( Generator::PrintNative ); | 262 | q->setFeature( Generator::PrintNative ); | ||
263 | q->setFeature( Generator::PrintToFile ); | 263 | q->setFeature( Generator::PrintToFile ); | ||
264 | #ifdef OKULAR_TEXTDOCUMENT_THREADED_RENDERING | 264 | #ifdef OKULAR_TEXTDOCUMENT_THREADED_RENDERING | ||
265 | if ( QFontDatabase::supportsThreadedFontRendering() ) | | |||
266 | q->setFeature( Generator::Threaded ); | 265 | q->setFeature( Generator::Threaded ); | ||
267 | #endif | 266 | #endif | ||
268 | 267 | | |||
269 | QObject::connect( mConverter, SIGNAL(addAction(Action*,int,int)), | 268 | QObject::connect( mConverter, SIGNAL(addAction(Action*,int,int)), | ||
270 | q, SLOT(addAction(Action*,int,int)) ); | 269 | q, SLOT(addAction(Action*,int,int)) ); | ||
271 | QObject::connect( mConverter, SIGNAL(addAnnotation(Annotation*,int,int)), | 270 | QObject::connect( mConverter, SIGNAL(addAnnotation(Annotation*,int,int)), | ||
272 | q, SLOT(addAnnotation(Annotation*,int,int)) ); | 271 | q, SLOT(addAnnotation(Annotation*,int,int)) ); | ||
273 | QObject::connect( mConverter, SIGNAL(addTitle(int,QString,QTextBlock)), | 272 | QObject::connect( mConverter, SIGNAL(addTitle(int,QString,QTextBlock)), | ||
▲ Show 20 Lines • Show All 314 Lines • Show Last 20 Lines |