mirror of
https://github.com/fralx/LimeReport.git
synced 2025-01-12 09:31:04 +03:00
Context menu added to band marker
This commit is contained in:
parent
b3c98dcee0
commit
58ef51ffe2
@ -99,6 +99,11 @@ void BandMarker::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void BandMarker::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
||||||
|
{
|
||||||
|
m_band->contextMenuEvent(event);
|
||||||
|
}
|
||||||
|
|
||||||
BandDesignIntf::BandDesignIntf(BandsType bandType, const QString &xmlTypeName, QObject* owner, QGraphicsItem *parent) :
|
BandDesignIntf::BandDesignIntf(BandsType bandType, const QString &xmlTypeName, QObject* owner, QGraphicsItem *parent) :
|
||||||
ItemsContainerDesignInft(xmlTypeName, owner,parent),
|
ItemsContainerDesignInft(xmlTypeName, owner,parent),
|
||||||
m_bandType(bandType),
|
m_bandType(bandType),
|
||||||
|
@ -63,6 +63,7 @@ public:
|
|||||||
qreal height(){return m_rect.height();}
|
qreal height(){return m_rect.height();}
|
||||||
protected:
|
protected:
|
||||||
void mousePressEvent(QGraphicsSceneMouseEvent *event);
|
void mousePressEvent(QGraphicsSceneMouseEvent *event);
|
||||||
|
void contextMenuEvent(QGraphicsSceneContextMenuEvent *event);
|
||||||
private:
|
private:
|
||||||
QRectF m_rect;
|
QRectF m_rect;
|
||||||
QColor m_color;
|
QColor m_color;
|
||||||
|
Loading…
Reference in New Issue
Block a user