| 136 | } |
| 137 | |
| 138 | PDFSearcher::size_type PDFSearcher::progressValue() const |
| 139 | { |
| 140 | const QMutexLocker mutexLocker{&m_mutex}; |
| 141 | size_type retVal{0}; |
| 142 | for (const SearchResult & result : m_results) { |
| 143 | if (result.finished) { |
| 144 | ++retVal; |
| 145 | } |
| 146 | } |
| 147 | return retVal; |
| 148 | } |
| 149 | |
| 150 | PDFSearcher::size_type PDFSearcher::progressMaximum() const |
| 151 | { |