0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-10-09 05:57:14 +03:00

Some fixes

This commit is contained in:
Sanych
2024-11-20 10:18:17 +03:00
parent 72ceba1d01
commit 83b769a623
14 changed files with 2570 additions and 754 deletions

View File

@@ -160,7 +160,8 @@ QVariant DataSourceModel::data(const QModelIndex& index, int role) const
void DataSourceModel::setDataSourceManager(DataSourceManager* dataManager)
{
m_dataManager = dataManager;
connect(m_dataManager,SIGNAL(datasourcesChanged()),this,SLOT(slotDatasourcesChanged()));
connect(m_dataManager, &DataSourceManager::datasourcesChanged,
this, &DataSourceModel::slotDatasourcesChanged);
updateModel();
}

View File

@@ -66,6 +66,7 @@ public:
virtual bool variableIsSystem(const QString& name) = 0;
virtual IDataSource* dataSource(const QString& name) = 0;
virtual IDataSourceHolder* dataSourceHolder(const QString& name) = 0;
virtual void setDesignTime(bool) = 0;
};
}

View File

@@ -1459,6 +1459,12 @@ void ReportEngine::printToFile(const QString &fileName)
d->printToFile(fileName);
}
ReportPages ReportEngine::renderToPages()
{
Q_D(ReportEngine);
return d->renderToPages();
}
bool ReportEngine::printToPDF(const QString &fileName)
{
Q_D(ReportEngine);

View File

@@ -156,6 +156,7 @@ public:
bool printReport(QMap<QString, QPrinter*> printers, bool printToAllPrinters = false);
bool printPages(ReportPages pages, QPrinter *printer);
void printToFile(const QString& fileName);
ReportPages renderToPages();
QGraphicsScene* createPreviewScene(QObject *parent = 0);
bool printToPDF(const QString& fileName);
bool exportReport(QString exporterName, const QString &fileName = "", const QMap<QString, QVariant>& params = QMap<QString, QVariant>());

View File

@@ -112,9 +112,7 @@ void VariablesHolder::clearUserVariables()
} else {
++it;
}
}
}
bool VariablesHolder::containsVariable(const QString &name)