mirror of
https://github.com/fralx/LimeReport.git
synced 2025-01-27 00:13:25 +03:00
Finish 1.4.77
# Conflicts: # limereport/lrbanddesignintf.cpp # limereport/lrbanddesignintf.h
This commit is contained in:
commit
ab5eec990a
@ -97,7 +97,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc
|
|||||||
|
|
||||||
LIMEREPORT_VERSION_MAJOR = 1
|
LIMEREPORT_VERSION_MAJOR = 1
|
||||||
LIMEREPORT_VERSION_MINOR = 4
|
LIMEREPORT_VERSION_MINOR = 4
|
||||||
LIMEREPORT_VERSION_RELEASE = 76
|
LIMEREPORT_VERSION_RELEASE = 77
|
||||||
|
|
||||||
LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}'
|
LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}'
|
||||||
DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\"
|
DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\"
|
||||||
|
@ -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)
|
void BandDesignIntf::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
||||||
{
|
{
|
||||||
|
prepareRect(painter, option, widget);
|
||||||
if ( !(backgroundColor() == Qt::white && backgroundBrushStyle() == SolidPattern) ) {
|
|
||||||
QBrush brush(backgroundColor(), static_cast<Qt::BrushStyle>(backgroundBrushStyle()));
|
|
||||||
brush.setTransform(painter->worldTransform().inverted());
|
|
||||||
painter->fillRect(rect(), brush);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (itemMode() & DesignMode){
|
if (itemMode() & DesignMode){
|
||||||
painter->save();
|
painter->save();
|
||||||
|
@ -106,6 +106,8 @@ class BandDesignIntf : public ItemsContainerDesignInft
|
|||||||
Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE setBackgroundColor)
|
Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE setBackgroundColor)
|
||||||
Q_PROPERTY(BrushStyle backgroundBrushStyle READ backgroundBrushStyle WRITE setBackgroundBrushStyle)
|
Q_PROPERTY(BrushStyle backgroundBrushStyle READ backgroundBrushStyle WRITE setBackgroundBrushStyle)
|
||||||
Q_PROPERTY(bool printIfEmpty READ printIfEmpty WRITE setPrintIfEmpty)
|
Q_PROPERTY(bool printIfEmpty READ printIfEmpty WRITE setPrintIfEmpty)
|
||||||
|
Q_PROPERTY(BGMode backgroundMode READ backgroundMode WRITE setBackgroundModeProperty)
|
||||||
|
Q_PROPERTY(int backgroundOpacity READ opacity WRITE setBackgroundOpacity)
|
||||||
Q_ENUMS(BandColumnsLayoutType)
|
Q_ENUMS(BandColumnsLayoutType)
|
||||||
friend class BandMarker;
|
friend class BandMarker;
|
||||||
friend class BandNameLabel;
|
friend class BandNameLabel;
|
||||||
@ -243,6 +245,8 @@ public:
|
|||||||
void setUseAlternateBackgroundColor(bool useAlternateBackgroundColor);
|
void setUseAlternateBackgroundColor(bool useAlternateBackgroundColor);
|
||||||
void replaceGroupsFunction(BandDesignIntf *band);
|
void replaceGroupsFunction(BandDesignIntf *band);
|
||||||
qreal bottomSpace() const;
|
qreal bottomSpace() const;
|
||||||
|
void setBackgroundModeProperty(BGMode value);
|
||||||
|
void setBackgroundOpacity(int value);
|
||||||
|
|
||||||
void addBookmark(const QString& key, const QVariant& value){ m_bookmarks.insert(key, value);}
|
void addBookmark(const QString& key, const QVariant& value){ m_bookmarks.insert(key, value);}
|
||||||
QList<QString> bookmarks(){ return m_bookmarks.keys();}
|
QList<QString> bookmarks(){ return m_bookmarks.keys();}
|
||||||
|
Loading…
Reference in New Issue
Block a user