From ba902477b949f6caa7de9ddb227f33143a8ace24 Mon Sep 17 00:00:00 2001 From: Sanych Date: Thu, 16 Nov 2023 10:54:37 +0300 Subject: [PATCH] isNeedToSave() added --- limereport/lrreportdesignwindow.cpp | 5 +++++ limereport/lrreportdesignwindow.h | 1 + limereport/lrreportdesignwindowintrerface.h | 1 + 3 files changed, 7 insertions(+) diff --git a/limereport/lrreportdesignwindow.cpp b/limereport/lrreportdesignwindow.cpp index 3f3cf4c..a150a33 100644 --- a/limereport/lrreportdesignwindow.cpp +++ b/limereport/lrreportdesignwindow.cpp @@ -940,6 +940,11 @@ bool ReportDesignWindow::checkNeedToSave() return true; } +bool LimeReport::ReportDesignWindow::isNeedToSave() +{ + return m_reportDesignWidget->isNeedToSave(); +} + void ReportDesignWindow::showModal() { bool deleteOnClose = testAttribute(Qt::WA_DeleteOnClose); diff --git a/limereport/lrreportdesignwindow.h b/limereport/lrreportdesignwindow.h index a93711e..cc5f3fb 100644 --- a/limereport/lrreportdesignwindow.h +++ b/limereport/lrreportdesignwindow.h @@ -65,6 +65,7 @@ public: static ReportDesignWindow* instance(){return m_instance;} bool checkNeedToSave(); + bool isNeedToSave(); void showModal(); void showNonModal(); void setSettings(QSettings* value); diff --git a/limereport/lrreportdesignwindowintrerface.h b/limereport/lrreportdesignwindowintrerface.h index 3aacfdd..97d1520 100644 --- a/limereport/lrreportdesignwindowintrerface.h +++ b/limereport/lrreportdesignwindowintrerface.h @@ -11,6 +11,7 @@ class LIMEREPORT_EXPORT ReportDesignWindowInterface: public QMainWindow{ public: ReportDesignWindowInterface(QWidget* parent = 0): QMainWindow(parent){} virtual bool checkNeedToSave() = 0; + virtual bool isNeedToSave() = 0; virtual void showModal() = 0; virtual void showNonModal() = 0; virtual void setSettings(QSettings* value) = 0;