mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
DocDiff application: differences dock widget
This commit is contained in:
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user