diff --git a/declarativeimports/core/iconitem.cpp b/declarativeimports/core/iconitem.cpp index defcdfe1c..370e694e6 100644 --- a/declarativeimports/core/iconitem.cpp +++ b/declarativeimports/core/iconitem.cpp @@ -155,38 +155,6 @@ void IconItem::setActive(bool active) emit activeChanged(); } -void IconItem::setImplicitWidth(qreal width) -{ - if (implicitWidth() == width) { - return; - } - - QQuickItem::setImplicitWidth(width); - - emit implicitWidthChanged(); -} - -qreal IconItem::implicitWidth() const -{ - return QQuickItem::implicitWidth(); -} - -void IconItem::setImplicitHeight(qreal height) -{ - if (implicitHeight() == height) { - return; - } - - QQuickItem::setImplicitHeight(height); - - emit implicitHeightChanged(); -} - -qreal IconItem::implicitHeight() const -{ - return QQuickItem::implicitHeight(); -} - void IconItem::setSmooth(const bool smooth) { if (smooth == m_smooth) { diff --git a/declarativeimports/core/iconitem.h b/declarativeimports/core/iconitem.h index 7c2cb00c6..8f8bf92e2 100644 --- a/declarativeimports/core/iconitem.h +++ b/declarativeimports/core/iconitem.h @@ -37,8 +37,6 @@ class IconItem : public QQuickPaintedItem Q_PROPERTY(QVariant source READ source WRITE setSource NOTIFY sourceChanged) Q_PROPERTY(bool smooth READ smooth WRITE setSmooth NOTIFY smoothChanged) - Q_PROPERTY(qreal implicitWidth READ implicitWidth WRITE setImplicitWidth NOTIFY implicitWidthChanged) - Q_PROPERTY(qreal implicitHeight READ implicitHeight WRITE setImplicitHeight NOTIFY implicitHeightChanged) Q_PROPERTY(bool active READ isActive WRITE setActive NOTIFY activeChanged) Q_PROPERTY(bool valid READ isValid NOTIFY validChanged) @@ -53,12 +51,6 @@ public: bool isActive() const; void setActive(bool active); - void setImplicitWidth(qreal width); - qreal implicitWidth() const; - - void setImplicitHeight(qreal height); - qreal implicitHeight() const; - void setSmooth(const bool smooth); bool smooth() const; @@ -74,8 +66,6 @@ Q_SIGNALS: void sourceChanged(); void smoothChanged(); void validChanged(); - void implicitWidthChanged(); - void implicitHeightChanged(); private Q_SLOTS: void loadPixmap();