mirror of
https://github.com/fralx/LimeReport.git
synced 2025-09-30 11:12:34 +03:00
Version 1.4 initial commit
This commit is contained in:
@@ -60,8 +60,24 @@ ShapeItem::ShapeItem(QObject *owner, QGraphicsItem *parent)
|
||||
{
|
||||
}
|
||||
|
||||
Qt::PenStyle ShapeItem::penStyle() const
|
||||
{
|
||||
return m_penStyle;
|
||||
}
|
||||
|
||||
void ShapeItem::setPenStyle(const Qt::PenStyle &value)
|
||||
{
|
||||
if ((value!=m_penStyle)){
|
||||
Qt::PenStyle oldValue = m_penStyle;
|
||||
m_penStyle=value;
|
||||
update();
|
||||
notify("penStyle",(int)oldValue,(int)value);
|
||||
}
|
||||
}
|
||||
|
||||
void ShapeItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
||||
{
|
||||
|
||||
painter->save();
|
||||
|
||||
QPen pen(m_shapeColor);
|
||||
@@ -150,21 +166,6 @@ void ShapeItem::setLineWidth(qreal value)
|
||||
}
|
||||
}
|
||||
|
||||
Qt::PenStyle ShapeItem::penStyle() const
|
||||
{
|
||||
return m_penStyle;
|
||||
}
|
||||
|
||||
void ShapeItem::setPenStyle(const Qt::PenStyle &value)
|
||||
{
|
||||
if (m_penStyle!=value){
|
||||
Qt::PenStyle oldValue = m_penStyle;
|
||||
m_penStyle = value;
|
||||
update();
|
||||
notify("penStyle",(int)oldValue,(int)value);
|
||||
}
|
||||
}
|
||||
|
||||
BaseDesignIntf *ShapeItem::createSameTypeItem(QObject *owner, QGraphicsItem *parent)
|
||||
{
|
||||
return new ShapeItem(owner,parent);
|
||||
|
Reference in New Issue
Block a user