mirror of
https://github.com/fralx/LimeReport.git
synced 2025-11-24 16:18:04 +03:00
Progress bars have been added to Design and Preview windows
This commit is contained in:
@@ -302,11 +302,16 @@ bool ReportEnginePrivate::printPages(ReportPages pages, QPrinter *printer)
|
||||
|
||||
void ReportEnginePrivate::internalPrintPages(ReportPages pages, QPrinter &printer)
|
||||
{
|
||||
m_cancelPrinting = false;
|
||||
int currenPage = 1;
|
||||
m_cancelPrinting = false;
|
||||
QMap<QString, QSharedPointer<PrintProcessor> > printProcessors;
|
||||
printProcessors.insert("default",QSharedPointer<PrintProcessor>(new PrintProcessor(&printer)));
|
||||
emit printingStarted(printer.toPage() - printer.fromPage());
|
||||
|
||||
int pageCount = (printer.printRange() == QPrinter::AllPages) ?
|
||||
pages.size() :
|
||||
printer.toPage() - printer.fromPage();
|
||||
|
||||
emit printingStarted(pageCount);
|
||||
foreach(PageItemDesignIntf::Ptr page, pages){
|
||||
if ( !m_cancelPrinting &&
|
||||
((printer.printRange() == QPrinter::AllPages) ||
|
||||
@@ -708,7 +713,7 @@ bool ReportEnginePrivate::slotLoadFromFile(const QString &fileName)
|
||||
}
|
||||
EASY_END_BLOCK;
|
||||
return true;
|
||||
};
|
||||
}
|
||||
}
|
||||
m_lastError = reader->lastError();
|
||||
EASY_END_BLOCK;
|
||||
@@ -1652,6 +1657,12 @@ void ReportEngine::setShowProgressDialog(bool value)
|
||||
d->setShowProgressDialog(value);
|
||||
}
|
||||
|
||||
bool ReportEngine::isShowProgressDialog()
|
||||
{
|
||||
Q_D(ReportEngine);
|
||||
return d->isShowProgressDialog();
|
||||
}
|
||||
|
||||
IDataSourceManager *ReportEngine::dataManager()
|
||||
{
|
||||
Q_D(ReportEngine);
|
||||
|
||||
Reference in New Issue
Block a user