Changeset View
Changeset View
Standalone View
Standalone View
core/document.cpp
Show First 20 Lines • Show All 3767 Lines • ▼ Show 20 Line(s) | |||||
3768 | { | 3768 | { | ||
3769 | d->m_nextDocumentDestination = namedDestination; | 3769 | d->m_nextDocumentDestination = namedDestination; | ||
3770 | } | 3770 | } | ||
3771 | 3771 | | |||
3772 | void Document::searchText( int searchID, const QString & text, bool fromStart, Qt::CaseSensitivity caseSensitivity, | 3772 | void Document::searchText( int searchID, const QString & text, bool fromStart, Qt::CaseSensitivity caseSensitivity, | ||
3773 | SearchType type, bool moveViewport, const QColor & color ) | 3773 | SearchType type, bool moveViewport, const QColor & color ) | ||
3774 | { | 3774 | { | ||
3775 | d->m_searchCancelled = false; | 3775 | d->m_searchCancelled = false; | ||
3776 | | ||||
3777 | // safety checks: don't perform searches on empty or unsearchable docs | 3776 | // safety checks: don't perform searches on empty or unsearchable docs | ||
3778 | if ( !d->m_generator || !d->m_generator->hasFeature( Generator::TextExtraction ) || d->m_pagesVector.isEmpty() ) | 3777 | if ( !d->m_generator || !d->m_generator->hasFeature( Generator::TextExtraction ) || d->m_pagesVector.isEmpty() ) | ||
3779 | { | 3778 | { | ||
3780 | emit searchFinished( searchID, NoMatchFound ); | 3779 | emit searchFinished( searchID, NoMatchFound ); | ||
3781 | return; | 3780 | return; | ||
3782 | } | 3781 | } | ||
3783 | 3782 | | |||
3784 | // if searchID search not recorded, create new descriptor and init params | 3783 | // if searchID search not recorded, create new descriptor and init params | ||
▲ Show 20 Lines • Show All 1868 Lines • Show Last 20 Lines |