r24688 by jghali - #16607: Show progress when importing pdf <fsimonis>
scribus-commit
scribus-commit at lists.scribus.net
Wed Aug 4 21:27:26 UTC 2021
Author: jghali
Date: Wed Aug 4 21:27:26 2021
New Revision: 24688
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24688
Log:
#16607: Show progress when importing pdf <fsimonis>
Modified:
trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp
Modified: trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24688&path=/trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp Wed Aug 4 21:27:26 2021
@@ -465,6 +465,11 @@
}
parsePagesString(pageString, &pageNs, lastPage);
+ if (m_progressDialog)
+ {
+ m_progressDialog->setTotalSteps("GI", pageNs.size());
+ qApp->processEvents();
+ }
if (pageNs.size() <= 0)
return false;
@@ -657,6 +662,11 @@
// m_Doc->pdfOptions().PresentVals.clear();
for (size_t i = 0; i < pageNs.size(); ++i)
{
+ if (m_progressDialog)
+ {
+ m_progressDialog->setProgress("GI", i);
+ qApp->processEvents();
+ }
int pp = pageNs[i];
m_Doc->setActiveLayer(baseLayer);
if (firstPg)
More information about the scribus-commit
mailing list