|
|
@ -450,11 +450,13 @@ void UBDocumentNavigator::onSelectionChanged() |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
void UBDocumentNavigator::onMovedToIndex(int index) |
|
|
|
void UBDocumentNavigator::onMovedToIndex(int index) |
|
|
|
{ |
|
|
|
{ |
|
|
|
UBSceneThumbnailNavigPixmap* pItem = dynamic_cast<UBSceneThumbnailNavigPixmap*>(mThumbnails.at(index)); |
|
|
|
if(index < mThumbnails.size()){ |
|
|
|
if(NULL != pItem) |
|
|
|
UBSceneThumbnailNavigPixmap* pItem = dynamic_cast<UBSceneThumbnailNavigPixmap*>(mThumbnails.at(index)); |
|
|
|
{ |
|
|
|
if(NULL != pItem) |
|
|
|
mCrntItem = pItem; |
|
|
|
{ |
|
|
|
mCrntItem->setSelected(true); |
|
|
|
mCrntItem = pItem; |
|
|
|
centerOn(mCrntItem); |
|
|
|
mCrntItem->setSelected(true); |
|
|
|
|
|
|
|
centerOn(mCrntItem); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|