improved document thumbnails and selection behaviors

preferencesAboutTextFull
Clément Fauconnier 6 years ago
parent 41c50a2c0a
commit 3aed8fc1f5
  1. 2
      src/document/UBDocumentContainer.cpp
  2. 2
      src/document/UBDocumentController.cpp

@ -151,8 +151,8 @@ void UBDocumentContainer::reloadThumbnails()
if (mCurrentDocument) if (mCurrentDocument)
{ {
UBThumbnailAdaptor::load(mCurrentDocument, mDocumentThumbs); UBThumbnailAdaptor::load(mCurrentDocument, mDocumentThumbs);
emit documentThumbnailsUpdated(this);
} }
emit documentThumbnailsUpdated(this);
} }
int UBDocumentContainer::pageFromSceneIndex(int sceneIndex) int UBDocumentContainer::pageFromSceneIndex(int sceneIndex)

@ -2335,6 +2335,7 @@ void UBDocumentController::moveIndexesToTrash(const QModelIndexList &list, UBDoc
UBDocumentProxy *proxy = docModel->proxyForIndex(sourceSibling); UBDocumentProxy *proxy = docModel->proxyForIndex(sourceSibling);
docModel->setCurrentDocument(proxy); docModel->setCurrentDocument(proxy);
setDocument(proxy);
selectionModel->select(sibling, QItemSelectionModel::ClearAndSelect); selectionModel->select(sibling, QItemSelectionModel::ClearAndSelect);
@ -2348,6 +2349,7 @@ void UBDocumentController::moveIndexesToTrash(const QModelIndexList &list, UBDoc
UBDocumentProxy *proxy = docModel->proxyForIndex(sourceSibling); UBDocumentProxy *proxy = docModel->proxyForIndex(sourceSibling);
docModel->setCurrentDocument(proxy); docModel->setCurrentDocument(proxy);
setDocument(proxy);
selectionModel->select(sibling, QItemSelectionModel::ClearAndSelect); selectionModel->select(sibling, QItemSelectionModel::ClearAndSelect);

Loading…
Cancel
Save