fixed issue 912

preferencesAboutTextFull
Claudio Valerio 12 years ago
parent 4ac3845de3
commit a7e95315a1
  1. 1
      src/adaptors/UBImportPDF.cpp
  2. 4
      src/core/UBDocumentManager.cpp

@ -70,7 +70,6 @@ QList<UBGraphicsItem*> UBImportPDF::import(const QUuid& uuid, const QString& fil
for(int pdfPageNumber = 1; pdfPageNumber <= pdfPageCount; pdfPageNumber++) for(int pdfPageNumber = 1; pdfPageNumber <= pdfPageCount; pdfPageNumber++)
{ {
UBApplication::showMessage(tr("Importing page %1 of %2").arg(pdfPageNumber).arg(pdfPageCount), true); UBApplication::showMessage(tr("Importing page %1 of %2").arg(pdfPageNumber).arg(pdfPageCount), true);
result << new UBGraphicsPDFItem(pdfRenderer, pdfPageNumber); // deleted by the scene result << new UBGraphicsPDFItem(pdfRenderer, pdfPageNumber); // deleted by the scene
} }
return result; return result;

@ -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);

Loading…
Cancel
Save