mirror of
https://github.com/fralx/LimeReport.git
synced 2025-10-09 05:57:14 +03:00
Some fixes
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
@@ -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);
|
||||
|
@@ -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>());
|
||||
|
@@ -112,9 +112,7 @@ void VariablesHolder::clearUserVariables()
|
||||
} else {
|
||||
++it;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
bool VariablesHolder::containsVariable(const QString &name)
|
||||
|
Reference in New Issue
Block a user