Prison
6 #include "scanresult.h"
7 #include "scanresult_p.h"
11 ScanResult::ScanResult()
12 : d(new ScanResultPrivate)
16 ScanResult::ScanResult(
const ScanResult &) =
default;
17 ScanResult::~ScanResult() =
default;
20 bool ScanResult::operator==(
const ScanResult &other)
const
22 return d->content == other.d->content && d->boundingRect == other.d->boundingRect && d->format == other.d->format;
25 bool ScanResult::hasContent()
const
27 return !d->content.isNull();
35 bool ScanResult::hasText()
const
40 QString ScanResult::text()
const
42 return hasText() ? d->content.toString() :
QString();
45 bool ScanResult::hasBinaryData()
const
52 return hasBinaryData() ? d->content.toByteArray() :
QByteArray();
60 QRect ScanResult::boundingRect()
const
62 return d->boundingRect;
65 #include "moc_scanresult.cpp"
Result of a barcode scan attempt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Dec 2 2023 04:09:08 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.