DocDiff application: differences dock widget

This commit is contained in:
Jakub Melka
2021-10-03 17:16:12 +02:00
parent 5972e17146
commit a78ed9f0b3
7 changed files with 144 additions and 6 deletions

View File

@ -1571,4 +1571,13 @@ void PDFDiffResultNavigator::update()
}
}
void PDFDiffResultNavigator::select(size_t currentIndex)
{
if (currentIndex < getLimit() && m_currentIndex != currentIndex)
{
m_currentIndex = currentIndex;
emit selectionChanged(m_currentIndex);
}
}
} // namespace pdf

View File

@ -215,6 +215,10 @@ public:
/// Updates selection, if difference result was changed
void update();
/// Selects current index
/// \param currentIndex
void select(size_t currentIndex);
signals:
void selectionChanged(size_t currentIndex);