Changeset View
Changeset View
Standalone View
Standalone View
plugins/ocr/kadmos/ocrkadmosengine.cpp
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | /* | 42 | /* | ||
43 | * Thread support is disabled here because the kadmos lib seems not to be | 43 | * Thread support is disabled here because the kadmos lib seems not to be | ||
44 | * thread safe, unfortunately. See slotKadmosResult-comments for more information | 44 | * thread safe, unfortunately. See slotKadmosResult-comments for more information | ||
45 | */ | 45 | */ | ||
46 | 46 | | |||
47 | OcrKadmosEngine::OcrKadmosEngine(QWidget *parent) | 47 | OcrKadmosEngine::OcrKadmosEngine(QWidget *parent) | ||
48 | : OcrEngine(parent) | 48 | : OcrEngine(parent) | ||
49 | { | 49 | { | ||
50 | m_tmpFile = QString::null; | 50 | m_tmpFile = QString(); | ||
51 | } | 51 | } | ||
52 | 52 | | |||
53 | OcrKadmosEngine::~OcrKadmosEngine() | 53 | OcrKadmosEngine::~OcrKadmosEngine() | ||
54 | { | 54 | { | ||
55 | } | 55 | } | ||
56 | 56 | | |||
57 | OcrBaseDialog *OcrKadmosEngine::createOCRDialog(QWidget *parent) | 57 | OcrBaseDialog *OcrKadmosEngine::createOCRDialog(QWidget *parent) | ||
58 | { | 58 | { | ||
▲ Show 20 Lines • Show All 147 Lines • ▼ Show 20 Line(s) | |||||
206 | 206 | | |||
207 | QStringList OcrKadmosEngine::tempFiles(bool retain) | 207 | QStringList OcrKadmosEngine::tempFiles(bool retain) | ||
208 | { | 208 | { | ||
209 | QStringList result; | 209 | QStringList result; | ||
210 | 210 | | |||
211 | #ifdef USE_KADMOS_FILEOP | 211 | #ifdef USE_KADMOS_FILEOP | ||
212 | if (!m_tmpFile.isNull()) { | 212 | if (!m_tmpFile.isNull()) { | ||
213 | result << m_tmpFile; | 213 | result << m_tmpFile; | ||
214 | m_tmpFile = QString::null; | 214 | m_tmpFile = QString(); | ||
215 | } | 215 | } | ||
216 | #endif | 216 | #endif | ||
217 | 217 | | |||
218 | return (result); | 218 | return (result); | ||
219 | } | 219 | } |