make setImagePath virtual
This commit is contained in:
parent
9da79a0840
commit
a225402b9e
6
svg.cpp
6
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<FrameSvg *>(this)) {
|
||||
frame->setImagePath(svgFilePath);
|
||||
return;
|
||||
}
|
||||
|
||||
if (d->setImagePath(svgFilePath)) {
|
||||
//kDebug() << "repaintNeeded";
|
||||
emit repaintNeeded();
|
||||
|
Loading…
x
Reference in New Issue
Block a user