From 3b0bd5d15f09ea2d3ff7f90315ad09f1dc8db9c4 Mon Sep 17 00:00:00 2001 From: James Date: Mon, 4 Jun 2018 15:31:03 -0400 Subject: [PATCH] Forward ReportEnginePrivate::cleared signal to ReportEngine::cleared s.t. users of LimeReport as a library are informed when a user clicks the new report Action --- limereport/lrreportengine.cpp | 1 + limereport/lrreportengine.h | 1 + 2 files changed, 2 insertions(+) diff --git a/limereport/lrreportengine.cpp b/limereport/lrreportengine.cpp index a5d101e..b1955e6 100644 --- a/limereport/lrreportengine.cpp +++ b/limereport/lrreportengine.cpp @@ -1181,6 +1181,7 @@ ReportEngine::ReportEngine(QObject *parent) connect(d, SIGNAL(onLoad(bool&)), this, SIGNAL(onLoad(bool&))); connect(d, SIGNAL(saveFinished()), this, SIGNAL(saveFinished())); connect(d, SIGNAL(loadFinished()), this, SIGNAL(loadFinished())); + connect(d, SIGNAL(cleared()), this, SIGNAL(cleared())); connect(d, SIGNAL(printedToPDF(QString)), this, SIGNAL(printedToPDF(QString))); connect(d, SIGNAL(getAviableLanguages(QList*)), diff --git a/limereport/lrreportengine.h b/limereport/lrreportengine.h index a188cef..a319dd1 100644 --- a/limereport/lrreportengine.h +++ b/limereport/lrreportengine.h @@ -116,6 +116,7 @@ public: QList designerLanguages(); QLocale::Language currentDesignerLanguage(); signals: + void cleared(); void renderStarted(); void renderFinished(); void renderPageFinished(int renderedPageCount);