mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 15:04:40 -04:00
new class for controlling navigation in LibraryWindow (NavigationController), code refactoring
This commit is contained in:
@ -64,3 +64,13 @@ void YACReaderHistoryController::updateHistory(const QModelIndex &mi)
|
||||
|
||||
emit(enabledForward(false));
|
||||
}
|
||||
|
||||
QModelIndex YACReaderHistoryController::lastIndex()
|
||||
{
|
||||
return history.last();
|
||||
}
|
||||
|
||||
QModelIndex YACReaderHistoryController::currentIndex()
|
||||
{
|
||||
return history.at(currentFolderNavigation);
|
||||
}
|
||||
|
Reference in New Issue
Block a user