mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-25 00:54:39 +03:00
Merge tag '1.5.36' into develop
Finish 1.5.36
This commit is contained in:
commit
7d57304df6
@ -1,5 +1,5 @@
|
||||
|
||||
# LimeReport v1.5.34 [![Build Status](https://api.travis-ci.org/fralx/LimeReport.svg?branch=master)](https://travis-ci.org/fralx/LimeReport) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/bc31412ea4814f30825b5ed3723e9a70)](https://app.codacy.com/app/fralx/LimeReport?utm_source=github.com&utm_medium=referral&utm_content=fralx/LimeReport&utm_campaign=Badge_Grade_Dashboard)
|
||||
# LimeReport v1.5.35 [![Build Status](https://api.travis-ci.org/fralx/LimeReport.svg?branch=master)](https://travis-ci.org/fralx/LimeReport) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/bc31412ea4814f30825b5ed3723e9a70)](https://app.codacy.com/app/fralx/LimeReport?utm_source=github.com&utm_medium=referral&utm_content=fralx/LimeReport&utm_campaign=Badge_Grade_Dashboard)
|
||||
|
||||
## Official LimeReport web site [http://limereport.ru](http://limereport.ru)
|
||||
|
||||
|
@ -128,7 +128,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc
|
||||
|
||||
LIMEREPORT_VERSION_MAJOR = 1
|
||||
LIMEREPORT_VERSION_MINOR = 5
|
||||
LIMEREPORT_VERSION_RELEASE = 35
|
||||
LIMEREPORT_VERSION_RELEASE = 36
|
||||
|
||||
LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}'
|
||||
DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\"
|
||||
|
@ -1137,7 +1137,7 @@ void BandDesignIntf::updateItemSize(DataSourceManager* dataManager, RenderPass p
|
||||
restoreLinks();
|
||||
snapshotItemsLayout();
|
||||
BandDesignIntf* patternBand = dynamic_cast<BandDesignIntf*>(patternItem());
|
||||
if (patternBand && pass == FirstPass) emit(patternBand->preparedForRender());
|
||||
|
||||
arrangeSubItems(pass, dataManager);
|
||||
if (autoHeight()){
|
||||
if (!keepTopSpace()) {
|
||||
|
@ -1264,6 +1264,7 @@ BandDesignIntf *ReportRender::renderData(BandDesignIntf *patternBand)
|
||||
replaceGroupsFunction(bandClone);
|
||||
}
|
||||
|
||||
patternBand->preparedForRender();
|
||||
bandClone->updateItemSize(m_datasources);
|
||||
|
||||
//m_scriptEngineContext->baseDesignIntfToScript(bandClone);
|
||||
|
@ -588,7 +588,6 @@ void ScriptEngineManager::clearTableOfContents(){
|
||||
|
||||
ScriptValueType ScriptEngineManager::moveQObjectToScript(QObject* object, const QString objectName)
|
||||
{
|
||||
|
||||
ScriptValueType obj = scriptEngine()->globalObject().property(objectName);
|
||||
if (!obj.isNull()) delete obj.toQObject();
|
||||
ScriptValueType result = scriptEngine()->newQObject(object);
|
||||
@ -1934,7 +1933,7 @@ bool DatasourceFunctions::invalidate(const QString& datasourceName)
|
||||
return false;
|
||||
}
|
||||
|
||||
QObject* DatasourceFunctions::createTableBuilder(BaseDesignIntf* horizontalLayout)
|
||||
QObject* DatasourceFunctions::createTableBuilder(QObject* horizontalLayout)
|
||||
{
|
||||
return new TableBuilder(dynamic_cast<LimeReport::HorizontalLayout*>(horizontalLayout), dynamic_cast<DataSourceManager*>(m_dataManager));
|
||||
}
|
||||
@ -1987,14 +1986,16 @@ void TableBuilder::buildTable(const QString& datasourceName)
|
||||
{
|
||||
checkBaseLayout();
|
||||
m_dataManager->dataSourceHolder(datasourceName)->invalidate(IDataSource::RENDER_MODE);
|
||||
m_dataManager->dataSource(datasourceName)->first();
|
||||
IDataSource* ds = m_dataManager->dataSource(datasourceName);
|
||||
if (ds){
|
||||
bool firstTime = true;
|
||||
QObject* row = m_horizontalLayout;
|
||||
while(!m_dataManager->dataSource(datasourceName)->eof()){
|
||||
while(!ds->eof()){
|
||||
if (!firstTime) row = addRow();
|
||||
else firstTime = false;
|
||||
fillInRowData(row);
|
||||
m_dataManager->dataSource(datasourceName)->next();
|
||||
ds->next();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -338,7 +338,7 @@ public:
|
||||
Q_INVOKABLE bool prior(const QString& datasourceName);
|
||||
Q_INVOKABLE bool isEOF(const QString& datasourceName);
|
||||
Q_INVOKABLE bool invalidate(const QString& datasourceName);
|
||||
Q_INVOKABLE QObject *createTableBuilder(BaseDesignIntf* horizontalLayout);
|
||||
Q_INVOKABLE QObject *createTableBuilder(QObject *horizontalLayout);
|
||||
private:
|
||||
IDataSourceManager* m_dataManager;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user