mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-25 00:54:39 +03:00
Finish 1.5.33
This commit is contained in:
commit
824b660865
@ -127,7 +127,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc
|
|||||||
|
|
||||||
LIMEREPORT_VERSION_MAJOR = 1
|
LIMEREPORT_VERSION_MAJOR = 1
|
||||||
LIMEREPORT_VERSION_MINOR = 5
|
LIMEREPORT_VERSION_MINOR = 5
|
||||||
LIMEREPORT_VERSION_RELEASE = 32
|
LIMEREPORT_VERSION_RELEASE = 33
|
||||||
|
|
||||||
LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}'
|
LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}'
|
||||||
DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\"
|
DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\"
|
||||||
|
@ -1254,6 +1254,11 @@ BaseDesignIntf* ReportEnginePrivate::createWatermark(PageDesignIntf* page, Water
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ReportEnginePrivate::clearRenderingPages(){
|
||||||
|
qDeleteAll(m_renderingPages.begin(), m_renderingPages.end());
|
||||||
|
m_renderingPages.clear();
|
||||||
|
}
|
||||||
|
|
||||||
ReportPages ReportEnginePrivate::renderToPages()
|
ReportPages ReportEnginePrivate::renderToPages()
|
||||||
{
|
{
|
||||||
int startTOCPage = -1;
|
int startTOCPage = -1;
|
||||||
@ -1275,7 +1280,7 @@ ReportPages ReportEnginePrivate::renderToPages()
|
|||||||
m_reportRendering = true;
|
m_reportRendering = true;
|
||||||
m_reportRender->setDatasources(dataManager());
|
m_reportRender->setDatasources(dataManager());
|
||||||
m_reportRender->setScriptContext(scriptContext());
|
m_reportRender->setScriptContext(scriptContext());
|
||||||
m_renderingPages.clear();
|
clearRenderingPages();
|
||||||
foreach (PageDesignIntf* page, m_pages) {
|
foreach (PageDesignIntf* page, m_pages) {
|
||||||
|
|
||||||
QVector<BaseDesignIntf*> watermarks;
|
QVector<BaseDesignIntf*> watermarks;
|
||||||
@ -1349,14 +1354,10 @@ ReportPages ReportEnginePrivate::renderToPages()
|
|||||||
|
|
||||||
emit renderFinished();
|
emit renderFinished();
|
||||||
m_reportRender.clear();
|
m_reportRender.clear();
|
||||||
|
clearRenderingPages();
|
||||||
//foreach(PageItemDesignIntf* page, m_renderingPages){
|
|
||||||
// delete page;
|
|
||||||
//}
|
|
||||||
m_renderingPages.clear();
|
|
||||||
}
|
}
|
||||||
m_reportRendering = false;
|
m_reportRendering = false;
|
||||||
//activateLanguage(QLocale::AnyLanguage);
|
|
||||||
#ifdef USE_QTSCRIPTENGINE
|
#ifdef USE_QTSCRIPTENGINE
|
||||||
ScriptEngineManager::instance().scriptEngine()->popContext();
|
ScriptEngineManager::instance().scriptEngine()->popContext();
|
||||||
#endif
|
#endif
|
||||||
|
@ -311,6 +311,7 @@ private:
|
|||||||
void initReport();
|
void initReport();
|
||||||
void paintByExternalPainter(const QString& objectName, QPainter* painter, const QStyleOptionGraphicsItem* options);
|
void paintByExternalPainter(const QString& objectName, QPainter* painter, const QStyleOptionGraphicsItem* options);
|
||||||
void dropChanges(){ m_datasources->dropChanges(); m_scriptEngineContext->dropChanges();}
|
void dropChanges(){ m_datasources->dropChanges(); m_scriptEngineContext->dropChanges();}
|
||||||
|
void clearRenderingPages();
|
||||||
private:
|
private:
|
||||||
QList<PageDesignIntf*> m_pages;
|
QList<PageDesignIntf*> m_pages;
|
||||||
QList<PageItemDesignIntf*> m_renderingPages;
|
QList<PageItemDesignIntf*> m_renderingPages;
|
||||||
|
Loading…
Reference in New Issue
Block a user