Don't redeclare QQuickItem properties for implicitSizes
Change-Id: I96a8e6acd23cdee77048bc064963c7735b6615db
This commit is contained in:
parent
ac0c457b65
commit
4a95748249
@ -390,38 +390,6 @@ void FrameSvgItem::doUpdate()
|
||||
update();
|
||||
}
|
||||
|
||||
void FrameSvgItem::setImplicitWidth(qreal width)
|
||||
{
|
||||
if (implicitWidth() == width) {
|
||||
return;
|
||||
}
|
||||
|
||||
QQuickItem::setImplicitWidth(width);
|
||||
|
||||
emit implicitWidthChanged();
|
||||
}
|
||||
|
||||
qreal FrameSvgItem::implicitWidth() const
|
||||
{
|
||||
return QQuickItem::implicitWidth();
|
||||
}
|
||||
|
||||
void FrameSvgItem::setImplicitHeight(qreal height)
|
||||
{
|
||||
if (implicitHeight() == height) {
|
||||
return;
|
||||
}
|
||||
|
||||
QQuickItem::setImplicitHeight(height);
|
||||
|
||||
emit implicitHeightChanged();
|
||||
}
|
||||
|
||||
qreal FrameSvgItem::implicitHeight() const
|
||||
{
|
||||
return QQuickItem::implicitHeight();
|
||||
}
|
||||
|
||||
Plasma::FrameSvg *FrameSvgItem::frameSvg() const
|
||||
{
|
||||
return m_frameSvg;
|
||||
|
@ -132,16 +132,6 @@ class FrameSvgItem : public QQuickItem
|
||||
*/
|
||||
Q_PROPERTY(Plasma::FrameSvg::EnabledBorders enabledBorders READ enabledBorders WRITE setEnabledBorders NOTIFY enabledBordersChanged)
|
||||
|
||||
/**
|
||||
* suggested default size hint for width
|
||||
*/
|
||||
Q_PROPERTY(qreal implicitWidth READ implicitWidth WRITE setImplicitWidth NOTIFY implicitWidthChanged)
|
||||
|
||||
/**
|
||||
* suggested default size hint for height
|
||||
*/
|
||||
Q_PROPERTY(qreal implicitHeight READ implicitHeight WRITE setImplicitHeight NOTIFY implicitHeightChanged)
|
||||
|
||||
public:
|
||||
/**
|
||||
* @return true if the svg has the necessary elements with the given prefix
|
||||
@ -169,12 +159,6 @@ public:
|
||||
void geometryChanged(const QRectF &newGeometry,
|
||||
const QRectF &oldGeometry);
|
||||
|
||||
void setImplicitWidth(qreal width);
|
||||
qreal implicitWidth() const;
|
||||
|
||||
void setImplicitHeight(qreal height);
|
||||
qreal implicitHeight() const;
|
||||
|
||||
/**
|
||||
* Only to be used from inside this library, is not intended to be invokable
|
||||
*/
|
||||
@ -193,8 +177,6 @@ Q_SIGNALS:
|
||||
void imagePathChanged();
|
||||
void prefixChanged();
|
||||
void enabledBordersChanged();
|
||||
void implicitWidthChanged();
|
||||
void implicitHeightChanged();
|
||||
|
||||
private Q_SLOTS:
|
||||
void doUpdate();
|
||||
|
Loading…
Reference in New Issue
Block a user