Asynchronous calculation of document text layout

This commit is contained in:
Jakub Melka
2020-01-01 18:23:18 +01:00
parent c832c4ecef
commit e9481fc446
12 changed files with 313 additions and 81 deletions

View File

@ -20,7 +20,13 @@
namespace pdf
{
void PDFProgress::start(size_t stepCount)
PDFProgress::PDFProgress(QObject* parent) :
QObject(parent)
{
qRegisterMetaType<pdf::ProgressStartupInfo>();
}
void PDFProgress::start(size_t stepCount, ProgressStartupInfo startupInfo)
{
Q_ASSERT(stepCount > 0);
@ -28,7 +34,7 @@ void PDFProgress::start(size_t stepCount)
m_stepCount = stepCount;
m_percentage = 0;
emit progressStarted();
emit progressStarted(qMove(startupInfo));
}
void PDFProgress::step()