mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 16:44:39 +03:00
Build fixed
This commit is contained in:
parent
a572b8c5d3
commit
1e0cc1b44d
@ -79,23 +79,6 @@ bool DataBand::isUnique() const
|
|||||||
return false;
|
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
|
QColor DataBand::bandColor() const
|
||||||
{
|
{
|
||||||
return QColor(Qt::darkGreen);
|
return QColor(Qt::darkGreen);
|
||||||
@ -104,7 +87,12 @@ QColor DataBand::bandColor() const
|
|||||||
void DataBand::preparePopUpMenu(QMenu &menu)
|
void DataBand::preparePopUpMenu(QMenu &menu)
|
||||||
{
|
{
|
||||||
BandDesignIntf::preparePopUpMenu(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->setCheckable(true);
|
||||||
currAction->setChecked(keepFooterTogether());
|
currAction->setChecked(keepFooterTogether());
|
||||||
|
|
||||||
@ -133,6 +121,10 @@ void DataBand::processPopUpAction(QAction *action)
|
|||||||
setProperty("sliceLastRow",action->isChecked());
|
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)
|
BaseDesignIntf *DataBand::createSameTypeItem(QObject *owner, QGraphicsItem *parent)
|
||||||
|
@ -53,8 +53,6 @@ public:
|
|||||||
DataBand(QObject* owner = 0, QGraphicsItem* parent=0);
|
DataBand(QObject* owner = 0, QGraphicsItem* parent=0);
|
||||||
bool isUnique() const;
|
bool isUnique() const;
|
||||||
bool isData() const {return true;}
|
bool isData() const {return true;}
|
||||||
void preparePopUpMenu(QMenu &menu);
|
|
||||||
void processPopUpAction(QAction *action);
|
|
||||||
protected:
|
protected:
|
||||||
QColor bandColor() const;
|
QColor bandColor() const;
|
||||||
void preparePopUpMenu(QMenu &menu);
|
void preparePopUpMenu(QMenu &menu);
|
||||||
|
Loading…
Reference in New Issue
Block a user