|
|
|
@ -52,12 +52,18 @@ void UBDocumentContainer::duplicatePages(QList<int>& pageIndexes) |
|
|
|
|
emit documentThumbnailsUpdated(this); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void UBDocumentContainer::movePageToIndex(int source, int target) |
|
|
|
|
bool UBDocumentContainer::movePageToIndex(int source, int target) |
|
|
|
|
{ |
|
|
|
|
if (source==0) |
|
|
|
|
{ |
|
|
|
|
// Title page - cant be moved
|
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
UBPersistenceManager::persistenceManager()->moveSceneToIndex(mCurrentDocument, source, target); |
|
|
|
|
deleteThumbPage(source); |
|
|
|
|
insertThumbPage(target); |
|
|
|
|
emit documentThumbnailsUpdated(this); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void UBDocumentContainer::deletePages(QList<int>& pageIndexes) |
|
|
|
|