mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-10-22 10:27:32 +03:00
Finish 1.4.77
# Conflicts: # limereport/lrbanddesignintf.cpp # limereport/lrbanddesignintf.h
This commit is contained in:
@@ -191,14 +191,27 @@ void BandDesignIntf::copyBookmarks(BandDesignIntf* sourceBand)
|
||||
}
|
||||
}
|
||||
|
||||
void BandDesignIntf::setBackgroundModeProperty(BaseDesignIntf::BGMode value)
|
||||
{
|
||||
if (value!=backgroundMode()){
|
||||
BaseDesignIntf::BGMode oldValue = backgroundMode();
|
||||
setBackgroundMode(value);
|
||||
notify("backgroundMode",oldValue,value);
|
||||
}
|
||||
}
|
||||
|
||||
void BandDesignIntf::setBackgroundOpacity(int value)
|
||||
{
|
||||
if (opacity()!=value){
|
||||
int oldValue = opacity();
|
||||
setOpacity(value);
|
||||
notify("backgroundOpacity",oldValue,value);
|
||||
}
|
||||
}
|
||||
|
||||
void BandDesignIntf::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
||||
{
|
||||
|
||||
if ( !(backgroundColor() == Qt::white && backgroundBrushStyle() == SolidPattern) ) {
|
||||
QBrush brush(backgroundColor(), static_cast<Qt::BrushStyle>(backgroundBrushStyle()));
|
||||
brush.setTransform(painter->worldTransform().inverted());
|
||||
painter->fillRect(rect(), brush);
|
||||
}
|
||||
prepareRect(painter, option, widget);
|
||||
|
||||
if (itemMode() & DesignMode){
|
||||
painter->save();
|
||||
|
Reference in New Issue
Block a user