From now Designer can load a report from the command-line option

This commit is contained in:
Arin Alexander 2017-01-31 18:31:28 +04:00
parent afc8ad77b2
commit f0ac782296

View File

@ -5,6 +5,9 @@ int main(int argc, char *argv[])
{ {
QApplication a(argc, argv); QApplication a(argc, argv);
LimeReport::ReportEngine report; LimeReport::ReportEngine report;
if (a.arguments().count()>1){
report.loadFromFile(a.arguments().at(1));
}
report.designReport(); report.designReport();
return a.exec(); return a.exec();
} }