Commit ee7b561d authored by Thorsten Zachmann's avatar Thorsten Zachmann

o added methods to add, remove and get event actions

svn path=/trunk/koffice/; revision=818111
parent fe4046be
......@@ -529,6 +529,25 @@ QList<QPointF> KoShape::connectionPoints() const {
return points;
}
void KoShape::addEventAction( KoEventAction * action )
{
if ( ! d->eventActions.contains( action ) ) {
d->eventActions.append( action );
}
}
void KoShape::removeEventAction( KoEventAction * action )
{
if ( d->eventActions.contains( action ) ) {
d->eventActions.removeAll( action );
}
}
QList<KoEventAction *> KoShape::eventActions() const
{
return d->eventActions;
}
void KoShape::setBackground ( const QBrush & brush ) {
d->backgroundBrush = brush;
d->shapeChanged(BackgroundChanged);
......
......@@ -54,6 +54,7 @@ class KoGenStyle;
class KoShapeControllerBase;
class KoDataCenter;
class KoShapeShadow;
class KoEventAction;
/**
*
......@@ -299,6 +300,21 @@ public:
*/
QList<QPointF> connectionPoints() const;
/**
* Add a event action
*/
void addEventAction( KoEventAction * action );
/**
* Remove a event action
*/
void removeEventAction( KoEventAction * action );
/**
* Get all event actions
*/
QList<KoEventAction *> eventActions() const;
/**
* Set the background of the shape.
* A QBrush can have a plain color, be fully transparent or have a complex fill.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment