0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-10-04 04:06:43 +03:00

useAlternateBackgroundColor property has been added

This commit is contained in:
Arin Alexander
2017-03-04 00:21:21 +03:00
parent 4c6c0dfd3b
commit 242dbe75d2
6 changed files with 58 additions and 12 deletions

View File

@@ -79,6 +79,23 @@ bool DataBand::isUnique() const
return false;
}
void DataBand::preparePopUpMenu(QMenu &menu)
{
DataBandDesignIntf::preparePopUpMenu(menu);
QAction* autoSplittableAction = menu.addAction(tr("useAlternateBackgroundColor"));
autoSplittableAction->setCheckable(true);
autoSplittableAction->setChecked(useAlternateBackgroundColor());
}
void DataBand::processPopUpAction(QAction *action)
{
DataBandDesignIntf::processPopUpAction(action);
if (action->text().compare(tr("useAlternateBackgroundColor")) == 0){
setProperty("useAlternateBackgroundColor",action->isChecked());
}
}
QColor DataBand::bandColor() const
{
return QColor(Qt::darkGreen);