Don't redeclare QQuickItem properties for implicitSizes

Change-Id: I96a8e6acd23cdee77048bc064963c7735b6615db
This commit is contained in:
David Edmundson 2014-09-17 20:26:29 +02:00 committed by David Edmundson
parent ac0c457b65
commit 4a95748249
2 changed files with 0 additions and 50 deletions

View File

@ -390,38 +390,6 @@ void FrameSvgItem::doUpdate()
update(); 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 Plasma::FrameSvg *FrameSvgItem::frameSvg() const
{ {
return m_frameSvg; return m_frameSvg;

View File

@ -132,16 +132,6 @@ class FrameSvgItem : public QQuickItem
*/ */
Q_PROPERTY(Plasma::FrameSvg::EnabledBorders enabledBorders READ enabledBorders WRITE setEnabledBorders NOTIFY enabledBordersChanged) 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: public:
/** /**
* @return true if the svg has the necessary elements with the given prefix * @return true if the svg has the necessary elements with the given prefix
@ -169,12 +159,6 @@ public:
void geometryChanged(const QRectF &newGeometry, void geometryChanged(const QRectF &newGeometry,
const QRectF &oldGeometry); 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 * Only to be used from inside this library, is not intended to be invokable
*/ */
@ -193,8 +177,6 @@ Q_SIGNALS:
void imagePathChanged(); void imagePathChanged();
void prefixChanged(); void prefixChanged();
void enabledBordersChanged(); void enabledBordersChanged();
void implicitWidthChanged();
void implicitHeightChanged();
private Q_SLOTS: private Q_SLOTS:
void doUpdate(); void doUpdate();