Redact text search result

This commit is contained in:
Jakub Melka
2020-12-30 18:26:45 +01:00
parent 19dd761f35
commit 00e67ec2b1
14 changed files with 244 additions and 3 deletions

View File

@ -468,6 +468,16 @@ void PDFViewerMainWindow::adjustToolbar(QToolBar* toolbar)
toolbar->setIconSize(iconSize);
}
pdf::PDFTextSelection PDFViewerMainWindow::getSelectedText() const
{
if (!m_advancedFindWidget)
{
return pdf::PDFTextSelection();
}
return m_advancedFindWidget->getSelectedText();
}
void PDFViewerMainWindow::closeEvent(QCloseEvent* event)
{
if (!m_programController->canClose())