mirror of
https://github.com/fralx/LimeReport.git
synced 2025-04-05 08:53:52 +03:00
External control unsaved changes
This commit is contained in:
parent
ed9c66b956
commit
e4b8701b21
@ -977,9 +977,9 @@ QSettings*ReportDesignWindow::settings()
|
||||
}
|
||||
}
|
||||
|
||||
void ReportDesignWindow::slotNewReport()
|
||||
void ReportDesignWindow::slotNewReport(bool needCheck)
|
||||
{
|
||||
if (checkNeedToSave()) {
|
||||
if (!needCheck || checkNeedToSave()) {
|
||||
m_lblReportName->setText("");
|
||||
startNewReport();
|
||||
m_deletePageAction->setEnabled(false);
|
||||
|
@ -71,10 +71,10 @@ public:
|
||||
QSettings* settings();
|
||||
void restoreSetting();
|
||||
void setShowProgressDialog(bool value){m_showProgressDialog = value;}
|
||||
void newReport() { slotNewReport();}
|
||||
void newReport(bool needCheck = true) { slotNewReport(needCheck);}
|
||||
QImage previewImage(int pageN = 0);
|
||||
private slots:
|
||||
void slotNewReport();
|
||||
void slotNewReport(bool needCheck = true);
|
||||
void slotNewPage();
|
||||
void slotDeletePage();
|
||||
void slotNewTextItem();
|
||||
|
@ -17,7 +17,7 @@ public:
|
||||
virtual QSettings* settings() = 0;
|
||||
virtual void restoreSetting() = 0;
|
||||
virtual void setShowProgressDialog(bool value) = 0;
|
||||
virtual void newReport() = 0;
|
||||
virtual void newReport(bool needCheck = true) = 0;
|
||||
};
|
||||
|
||||
} // namespace LimeReport
|
||||
|
Loading…
Reference in New Issue
Block a user