|
|
|
@ -55,10 +55,11 @@ UBDocumentNavigator::UBDocumentNavigator(QWidget *parent, const char *name):QGra |
|
|
|
|
|
|
|
|
|
setFrameShadow(QFrame::Plain); |
|
|
|
|
|
|
|
|
|
connect(UBApplication::boardController, SIGNAL(activeSceneChanged()), this, SLOT(addNewPage())); |
|
|
|
|
connect(UBApplication::boardController, SIGNAL(setDocOnPageNavigator(UBDocumentProxy*)), this, SLOT(generateThumbnails())); |
|
|
|
|
connect(UBApplication::boardController, SIGNAL(activeSceneChanged()), this, SLOT(generateThumbnails())); |
|
|
|
|
connect(UBApplication::boardController, SIGNAL(newPageAdded()), this, SLOT(addNewPage())); |
|
|
|
|
connect(mScene, SIGNAL(selectionChanged()), this, SLOT(onSelectionChanged())); |
|
|
|
|
connect(UBApplication::boardController, SIGNAL(documentReorganized(int)), this, SLOT(onMovedToIndex(int))); |
|
|
|
|
connect(UBApplication::boardController, SIGNAL(scrollToSelectedPage()), this, SLOT(onScrollToSelectedPage())); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -150,9 +151,10 @@ void UBDocumentNavigator::updateSpecificThumbnail(int iPage) |
|
|
|
|
if(UBApplication::boardController) |
|
|
|
|
{ |
|
|
|
|
UBApplication::boardController->persistCurrentScene(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}else |
|
|
|
|
{ |
|
|
|
|
UBThumbnailAdaptor::persistScene(mCrntDoc->persistencePath(), pScene, iPage); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Load it
|
|
|
|
|
QPixmap pix = UBThumbnailAdaptor::load(mCrntDoc, iPage); |
|
|
|
|