Build fixed

This commit is contained in:
Arin Alexander 2018-06-20 16:52:54 +03:00
parent a572b8c5d3
commit 1e0cc1b44d
2 changed files with 10 additions and 20 deletions

View File

@ -79,23 +79,6 @@ bool DataBand::isUnique() const
return false;
}
void DataBand::preparePopUpMenu(QMenu &menu)
{
DataBandDesignIntf::preparePopUpMenu(menu);
QAction* autoSplittableAction = menu.addAction(tr("Use alternate background color"));
autoSplittableAction->setCheckable(true);
autoSplittableAction->setChecked(useAlternateBackgroundColor());
}
void DataBand::processPopUpAction(QAction *action)
{
DataBandDesignIntf::processPopUpAction(action);
if (action->text().compare(tr("Use alternate background color")) == 0){
setProperty("useAlternateBackgroundColor",action->isChecked());
}
}
QColor DataBand::bandColor() const
{
return QColor(Qt::darkGreen);
@ -104,7 +87,12 @@ QColor DataBand::bandColor() const
void DataBand::preparePopUpMenu(QMenu &menu)
{
BandDesignIntf::preparePopUpMenu(menu);
QAction* currAction = menu.addAction(tr("Keep footer together"));
QAction* currAction = menu.addAction(tr("Use alternate background color"));
currAction->setCheckable(true);
currAction->setChecked(useAlternateBackgroundColor());
currAction = menu.addAction(tr("Keep footer together"));
currAction->setCheckable(true);
currAction->setChecked(keepFooterTogether());
@ -133,6 +121,10 @@ void DataBand::processPopUpAction(QAction *action)
setProperty("sliceLastRow",action->isChecked());
}
if (action->text().compare(tr("Use alternate background color")) == 0){
setProperty("useAlternateBackgroundColor",action->isChecked());
}
}
BaseDesignIntf *DataBand::createSameTypeItem(QObject *owner, QGraphicsItem *parent)

View File

@ -53,8 +53,6 @@ public:
DataBand(QObject* owner = 0, QGraphicsItem* parent=0);
bool isUnique() const;
bool isData() const {return true;}
void preparePopUpMenu(QMenu &menu);
void processPopUpAction(QAction *action);
protected:
QColor bandColor() const;
void preparePopUpMenu(QMenu &menu);