mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-25 04:54:40 +03:00
Disable creation of Tear-off band if it exists
This commit is contained in:
parent
d6eedd8cbd
commit
6982edc8ec
@ -1095,6 +1095,7 @@ void ReportDesignWindow::updateAvaibleBands(){
|
|||||||
m_newPageFooter->setEnabled(true);
|
m_newPageFooter->setEnabled(true);
|
||||||
m_newReportHeader->setEnabled(true);
|
m_newReportHeader->setEnabled(true);
|
||||||
m_newReportFooter->setEnabled(true);
|
m_newReportFooter->setEnabled(true);
|
||||||
|
m_newTearOffBand->setEnabled(true);
|
||||||
|
|
||||||
foreach(BandDesignIntf* band, m_reportDesignWidget->activePage()->pageItem()->bands()){
|
foreach(BandDesignIntf* band, m_reportDesignWidget->activePage()->pageItem()->bands()){
|
||||||
switch (band->bandType()) {
|
switch (band->bandType()) {
|
||||||
@ -1109,6 +1110,8 @@ void ReportDesignWindow::updateAvaibleBands(){
|
|||||||
break;
|
break;
|
||||||
case BandDesignIntf::ReportFooter:
|
case BandDesignIntf::ReportFooter:
|
||||||
m_newReportFooter->setEnabled(false);
|
m_newReportFooter->setEnabled(false);
|
||||||
|
case BandDesignIntf::TearOffBand:
|
||||||
|
m_newTearOffBand->setEnabled(false);
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user