mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-23 20:22:58 +03:00
From now Designer can load a report from the command-line option
This commit is contained in:
parent
afc8ad77b2
commit
f0ac782296
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user