From f0ac7822964bbb574b883a63a07ebb32bb20fbf9 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Tue, 31 Jan 2017 18:31:28 +0400 Subject: [PATCH] From now Designer can load a report from the command-line option --- designer/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/designer/main.cpp b/designer/main.cpp index 7d5084c..6ecf8ef 100644 --- a/designer/main.cpp +++ b/designer/main.cpp @@ -5,6 +5,9 @@ int main(int argc, char *argv[]) { QApplication a(argc, argv); LimeReport::ReportEngine report; + if (a.arguments().count()>1){ + report.loadFromFile(a.arguments().at(1)); + } report.designReport(); return a.exec(); }