13 lines
300 B
C++
13 lines
300 B
C++
#include "ProcessingItem.h"
|
|
|
|
bool ProcessingItem::isValid (bool checkOnlyInput) const {
|
|
bool valid = true;
|
|
valid &= (!screenPos.isNull ());
|
|
valid &= (!source.isNull ());
|
|
valid &= (!ocrLanguage.isEmpty ());
|
|
if (!checkOnlyInput) {
|
|
valid &= (!recognized.isEmpty ());
|
|
}
|
|
return valid;
|
|
}
|