Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 38521280 authored by Jan Hambrecht's avatar Jan Hambrecht

fix coding style issues


svn path=/trunk/koffice/; revision=993972
parent 0026550e
......@@ -1368,19 +1368,19 @@ void KoShape::removeAdditionalStyleAttribute(const char * name)
d->additionalStyleAttributes.remove(name);
}
const QList<KoFilterEffect*> KoShape::filterEffectStack() const
QList<KoFilterEffect*> KoShape::filterEffectStack() const
{
Q_D(const KoShape);
return d->filterEffects;
}
void KoShape::insertFilterEffect(uint index, KoFilterEffect * filter)
void KoShape::insertFilterEffect(int index, KoFilterEffect * filter)
{
Q_D(KoShape);
d->filterEffects.insert(index, filter);
}
void KoShape::removeFilterEffect(uint index)
void KoShape::removeFilterEffect(int index)
{
Q_D(KoShape);
d->filterEffects.removeAt(index);
......
......@@ -799,20 +799,20 @@ public:
*
* @return the list of filter effects applied on the shape when rendering.
*/
const QList<KoFilterEffect*> filterEffectStack() const;
QList<KoFilterEffect*> filterEffectStack() const;
/**
* Inserts a new filter at the given position in the filter list.
* @param index the list index to insert the new filter at
* @param filter the new filter to insert
*/
void insertFilterEffect(uint index, KoFilterEffect * filter);
void insertFilterEffect(int index, KoFilterEffect * filter);
/**
* Removes the filter with the given index from the filter list.
* @param index the index of the filter to remove
*/
void removeFilterEffect(uint index);
void removeFilterEffect(int index);
protected:
/// constructor
......
......@@ -221,8 +221,7 @@ void KoShapeManager::paintShape(KoShape * shape, QPainter &painter, const KoView
shape->shadow()->paint(shape, painter, converter);
painter.restore();
}
if(shape->filterEffectStack().empty())
{
if(shape->filterEffectStack().empty()) {
painter.save();
shape->paint(painter, converter);
painter.restore();
......@@ -261,8 +260,7 @@ void KoShapeManager::paintShape(KoShape * shape, QPainter &painter, const KoView
imagePainter.end();
// Filter
foreach(KoFilterEffect* filterEffect, shape->filterEffectStack())
{
foreach(KoFilterEffect* filterEffect, shape->filterEffectStack()) {
filterEffect->processImage(image);
}
......
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