setReportFileName(const QString& fileName) has been added to ReportEngine

This commit is contained in:
Arin Alexander 2016-04-21 14:58:21 +03:00
parent 84953b6847
commit cb54963db9
4 changed files with 9 additions and 0 deletions

View File

@ -80,6 +80,7 @@ public:
bool loadFromByteArray(QByteArray *data); bool loadFromByteArray(QByteArray *data);
bool loadFromString(const QString& data); bool loadFromString(const QString& data);
QString reportFileName(); QString reportFileName();
void setReportFileName(const QString& fileName);
bool saveToFile(); bool saveToFile();
bool saveToFile(const QString& fileName); bool saveToFile(const QString& fileName);
QByteArray saveToByteArray(); QByteArray saveToByteArray();

View File

@ -698,6 +698,12 @@ QString ReportEngine::reportFileName()
return d->reportFileName(); return d->reportFileName();
} }
void ReportEngine::setReportFileName(const QString &fileName)
{
Q_D(ReportEngine);
return d->setReportFileName(fileName);
}
bool ReportEngine::saveToFile() bool ReportEngine::saveToFile()
{ {
Q_D(ReportEngine); Q_D(ReportEngine);

View File

@ -80,6 +80,7 @@ public:
bool loadFromByteArray(QByteArray *data); bool loadFromByteArray(QByteArray *data);
bool loadFromString(const QString& data); bool loadFromString(const QString& data);
QString reportFileName(); QString reportFileName();
void setReportFileName(const QString& fileName);
bool saveToFile(); bool saveToFile();
bool saveToFile(const QString& fileName); bool saveToFile(const QString& fileName);
QByteArray saveToByteArray(); QByteArray saveToByteArray();

View File

@ -87,6 +87,7 @@ public:
bool loadFromByteArray(QByteArray *data, const QString& name = ""); bool loadFromByteArray(QByteArray *data, const QString& name = "");
bool loadFromString(const QString& report, const QString& name = ""); bool loadFromString(const QString& report, const QString& name = "");
QString reportFileName(){return m_fileName;} QString reportFileName(){return m_fileName;}
void setReportFileName(const QString& reportFileName){ m_fileName = reportFileName;}
bool saveToFile(); bool saveToFile();
bool saveToFile(const QString& fileName); bool saveToFile(const QString& fileName);
QByteArray saveToByteArray(); QByteArray saveToByteArray();