mirror of
https://github.com/fralx/LimeReport.git
synced 2025-04-05 17:03:46 +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("");
|
m_lblReportName->setText("");
|
||||||
startNewReport();
|
startNewReport();
|
||||||
m_deletePageAction->setEnabled(false);
|
m_deletePageAction->setEnabled(false);
|
||||||
|
@ -71,10 +71,10 @@ public:
|
|||||||
QSettings* settings();
|
QSettings* settings();
|
||||||
void restoreSetting();
|
void restoreSetting();
|
||||||
void setShowProgressDialog(bool value){m_showProgressDialog = value;}
|
void setShowProgressDialog(bool value){m_showProgressDialog = value;}
|
||||||
void newReport() { slotNewReport();}
|
void newReport(bool needCheck = true) { slotNewReport(needCheck);}
|
||||||
QImage previewImage(int pageN = 0);
|
QImage previewImage(int pageN = 0);
|
||||||
private slots:
|
private slots:
|
||||||
void slotNewReport();
|
void slotNewReport(bool needCheck = true);
|
||||||
void slotNewPage();
|
void slotNewPage();
|
||||||
void slotDeletePage();
|
void slotDeletePage();
|
||||||
void slotNewTextItem();
|
void slotNewTextItem();
|
||||||
|
@ -17,7 +17,7 @@ public:
|
|||||||
virtual QSettings* settings() = 0;
|
virtual QSettings* settings() = 0;
|
||||||
virtual void restoreSetting() = 0;
|
virtual void restoreSetting() = 0;
|
||||||
virtual void setShowProgressDialog(bool value) = 0;
|
virtual void setShowProgressDialog(bool value) = 0;
|
||||||
virtual void newReport() = 0;
|
virtual void newReport(bool needCheck = true) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace LimeReport
|
} // namespace LimeReport
|
||||||
|
Loading…
Reference in New Issue
Block a user