ScreenTranslator/ProcessingItem.cpp

13 lines
300 B
C++
Raw Normal View History

#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;
}