Commit 9c34c276 authored by Jan Hambrecht's avatar Jan Hambrecht

add notifications for background and border changes

and use that to update inside the gradient tool


svn path=/trunk/koffice/; revision=767179
parent 50a79c13
......@@ -517,6 +517,8 @@ QList<QPointF> KoShape::connectionPoints() const {
void KoShape::setBackground ( const QBrush & brush ) {
d->backgroundBrush = brush;
d->shapeChanged(BackgroundChanged);
notifyChanged();
}
QBrush KoShape::background() const {
......@@ -611,6 +613,8 @@ void KoShape::setBorder(KoShapeBorderModel *border) {
d->border = border;
if(d->border)
d->border->addUser();
d->shapeChanged(BorderChanged);
notifyChanged();
}
const QMatrix& KoShape::matrix() const {
......
......@@ -108,7 +108,9 @@ public:
GenericMatrixChange, ///< used after the matrix was changed without knowing which property explicitly changed
ParentChanged, ///< used after a setParent()
CollisionDetected, ///< used when another shape moved in our boundingrect
Deleted ///< the shape was deleted
Deleted, ///< the shape was deleted
BorderChanged, ///< the shapes border has changed
BackgroundChanged ///< the shapes background has changed
};
/**
......
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