|
|
@ -170,6 +170,10 @@ UBDocumentProxy* UBDocumentManager::importFile(const QFile& pFile, const QString |
|
|
|
foreach(UBGraphicsItem* page, pages) |
|
|
|
foreach(UBGraphicsItem* page, pages) |
|
|
|
{ |
|
|
|
{ |
|
|
|
UBApplication::showMessage(tr("Inserting page %1 of %2").arg(++nPage).arg(pages.size()), true); |
|
|
|
UBApplication::showMessage(tr("Inserting page %1 of %2").arg(++nPage).arg(pages.size()), true); |
|
|
|
|
|
|
|
#ifdef Q_WS_MACX |
|
|
|
|
|
|
|
//Workaround for issue 912
|
|
|
|
|
|
|
|
QApplication::processEvents(); |
|
|
|
|
|
|
|
#endif |
|
|
|
int pageIndex = document->pageCount(); |
|
|
|
int pageIndex = document->pageCount(); |
|
|
|
UBGraphicsScene* scene = UBPersistenceManager::persistenceManager()->createDocumentSceneAt(document, pageIndex); |
|
|
|
UBGraphicsScene* scene = UBPersistenceManager::persistenceManager()->createDocumentSceneAt(document, pageIndex); |
|
|
|
importAdaptor->placeImportedItemToScene(scene, page); |
|
|
|
importAdaptor->placeImportedItemToScene(scene, page); |
|
|
|