mirror of
https://github.com/fralx/LimeReport.git
synced 2025-09-23 08:29:07 +03:00
Band popup menu fixed
This commit is contained in:
@@ -99,6 +99,16 @@ void DataBand::preparePopUpMenu(QMenu &menu)
|
||||
currAction->setCheckable(true);
|
||||
currAction->setChecked(sliceLastRow());
|
||||
|
||||
currAction = menu.addAction(tr("Start from new page"));
|
||||
currAction->setCheckable(true);
|
||||
currAction->setChecked(startFromNewPage());
|
||||
|
||||
currAction = menu.addAction(tr("Start new page"));
|
||||
currAction->setCheckable(true);
|
||||
currAction->setChecked(startNewPage());
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void DataBand::processPopUpAction(QAction *action)
|
||||
@@ -116,6 +126,14 @@ void DataBand::processPopUpAction(QAction *action)
|
||||
setProperty("sliceLastRow",action->isChecked());
|
||||
}
|
||||
|
||||
if (action->text().compare(tr("Start new page")) == 0){
|
||||
setProperty("startNewPage",action->isChecked());
|
||||
}
|
||||
|
||||
if (action->text().compare(tr("Start from new page")) == 0){
|
||||
setProperty("startFromNewPage",action->isChecked());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BaseDesignIntf *DataBand::createSameTypeItem(QObject *owner, QGraphicsItem *parent)
|
||||
@@ -150,7 +168,7 @@ void DataHeaderBand::processPopUpAction(QAction *action)
|
||||
{
|
||||
BandDesignIntf::processPopUpAction(action);
|
||||
if (action->text().compare(tr("Reprint on each page")) == 0){
|
||||
setProperty("repeatOnEachPage",action->isChecked());
|
||||
setProperty("reprintOnEachPage",action->isChecked());
|
||||
}
|
||||
|
||||
if (action->text().compare(tr("Repeat on each row")) == 0){
|
||||
|
Reference in New Issue
Block a user