Revert "Initialize scale factor to the last scale factor set on any instance"
This reverts commit 15f470fafc
.
This commit is contained in:
parent
a570254e1a
commit
73b6d92258
@ -97,7 +97,6 @@ public:
|
|||||||
|
|
||||||
static QHash<QString, SharedSvgRenderer::Ptr> s_renderers;
|
static QHash<QString, SharedSvgRenderer::Ptr> s_renderers;
|
||||||
static QWeakPointer<Theme> s_systemColorsCache;
|
static QWeakPointer<Theme> s_systemColorsCache;
|
||||||
static qreal s_lastScaleFactor;
|
|
||||||
|
|
||||||
Svg *q;
|
Svg *q;
|
||||||
QWeakPointer<Theme> theme;
|
QWeakPointer<Theme> theme;
|
||||||
|
@ -146,7 +146,7 @@ SvgPrivate::SvgPrivate(Svg *svg)
|
|||||||
colorGroup(Plasma::Theme::NormalColorGroup),
|
colorGroup(Plasma::Theme::NormalColorGroup),
|
||||||
lastModified(0),
|
lastModified(0),
|
||||||
devicePixelRatio(1.0),
|
devicePixelRatio(1.0),
|
||||||
scaleFactor(s_lastScaleFactor),
|
scaleFactor(1.0),
|
||||||
status(Svg::Status::Normal),
|
status(Svg::Status::Normal),
|
||||||
multipleImages(false),
|
multipleImages(false),
|
||||||
themed(false),
|
themed(false),
|
||||||
@ -700,7 +700,6 @@ void SvgPrivate::colorsChanged()
|
|||||||
|
|
||||||
QHash<QString, SharedSvgRenderer::Ptr> SvgPrivate::s_renderers;
|
QHash<QString, SharedSvgRenderer::Ptr> SvgPrivate::s_renderers;
|
||||||
QWeakPointer<Theme> SvgPrivate::s_systemColorsCache;
|
QWeakPointer<Theme> SvgPrivate::s_systemColorsCache;
|
||||||
qreal SvgPrivate::s_lastScaleFactor = 1.0;
|
|
||||||
|
|
||||||
Svg::Svg(QObject *parent)
|
Svg::Svg(QObject *parent)
|
||||||
: QObject(parent),
|
: QObject(parent),
|
||||||
@ -747,7 +746,6 @@ void Svg::setScaleFactor(qreal ratio)
|
|||||||
}
|
}
|
||||||
|
|
||||||
d->scaleFactor = floor(ratio);
|
d->scaleFactor = floor(ratio);
|
||||||
d->s_lastScaleFactor = d->scaleFactor;
|
|
||||||
//not resize() because we want to do it unconditionally
|
//not resize() because we want to do it unconditionally
|
||||||
QRectF rect;
|
QRectF rect;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user