From a225402b9e5a32b08953606e44d8eeb29c584f10 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Fri, 20 May 2011 08:16:01 +0200 Subject: [PATCH] make setImagePath virtual --- svg.cpp | 6 ------ svg.h | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/svg.cpp b/svg.cpp index 202643ccc..fc6a8ce40 100644 --- a/svg.cpp +++ b/svg.cpp @@ -778,12 +778,6 @@ bool Svg::containsMultipleImages() const void Svg::setImagePath(const QString &svgFilePath) { - //BIC FIXME: setImagePath should be virtual, or call an internal virtual protected method - if (FrameSvg *frame = qobject_cast(this)) { - frame->setImagePath(svgFilePath); - return; - } - if (d->setImagePath(svgFilePath)) { //kDebug() << "repaintNeeded"; emit repaintNeeded(); diff --git a/svg.h b/svg.h index 3b640aca5..69642e07d 100644 --- a/svg.h +++ b/svg.h @@ -299,7 +299,7 @@ class PLASMA_EXPORT Svg : public QObject * @arg svgFilePath either an absolute path to an SVG file, or * an image name */ - void setImagePath(const QString &svgFilePath); + virtual void setImagePath(const QString &svgFilePath); /** * The SVG file to render.