No need to forward the implicit* properties
It's not modifying anything or similar either. Reviewed by David Edmundson
This commit is contained in:
parent
9badcd9275
commit
6608359333
@ -179,38 +179,6 @@ void SvgItem::updateNeeded()
|
||||
update();
|
||||
}
|
||||
|
||||
void SvgItem::setImplicitWidth(qreal width)
|
||||
{
|
||||
if (implicitWidth() == width) {
|
||||
return;
|
||||
}
|
||||
|
||||
QQuickItem::setImplicitWidth(width);
|
||||
|
||||
emit implicitWidthChanged();
|
||||
}
|
||||
|
||||
qreal SvgItem::implicitWidth() const
|
||||
{
|
||||
return QQuickItem::implicitWidth();
|
||||
}
|
||||
|
||||
void SvgItem::setImplicitHeight(qreal height)
|
||||
{
|
||||
if (implicitHeight() == height) {
|
||||
return;
|
||||
}
|
||||
|
||||
QQuickItem::setImplicitHeight(height);
|
||||
|
||||
emit implicitHeightChanged();
|
||||
}
|
||||
|
||||
qreal SvgItem::implicitHeight() const
|
||||
{
|
||||
return QQuickItem::implicitHeight();
|
||||
}
|
||||
|
||||
void SvgItem::updateDevicePixelRatio()
|
||||
{
|
||||
if (m_svg) {
|
||||
|
@ -60,16 +60,6 @@ class SvgItem : public QQuickItem
|
||||
*/
|
||||
Q_PROPERTY(bool smooth READ smooth WRITE setSmooth NOTIFY smoothChanged)
|
||||
|
||||
/**
|
||||
* suggested default size hint for width (default to naturalSize.width)
|
||||
*/
|
||||
Q_PROPERTY(qreal implicitWidth READ implicitWidth WRITE setImplicitWidth NOTIFY implicitWidthChanged)
|
||||
|
||||
/**
|
||||
* suggested default size hint for height (default to naturalSize.height)
|
||||
*/
|
||||
Q_PROPERTY(qreal implicitHeight READ implicitHeight WRITE setImplicitHeight NOTIFY implicitHeightChanged)
|
||||
|
||||
public:
|
||||
SvgItem(QQuickItem *parent = 0);
|
||||
~SvgItem();
|
||||
@ -85,12 +75,6 @@ public:
|
||||
|
||||
QSizeF naturalSize() const;
|
||||
|
||||
void setImplicitWidth(qreal width);
|
||||
qreal implicitWidth() const;
|
||||
|
||||
void setImplicitHeight(qreal height);
|
||||
qreal implicitHeight() const;
|
||||
|
||||
QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *updatePaintNodeData);
|
||||
|
||||
Q_SIGNALS:
|
||||
@ -98,8 +82,6 @@ Q_SIGNALS:
|
||||
void svgChanged();
|
||||
void naturalSizeChanged();
|
||||
void smoothChanged();
|
||||
void implicitWidthChanged();
|
||||
void implicitHeightChanged();
|
||||
|
||||
protected Q_SLOTS:
|
||||
void updateNeeded();
|
||||
|
Loading…
Reference in New Issue
Block a user