implicit{Width|Height} have moved into QQuickItem

These properties can just be ditched since they're available in our grandparent now.
This commit is contained in:
Sebastian Kügler 2013-02-12 04:25:39 +01:00
parent e6647c80bc
commit 17ee518ccc
2 changed files with 0 additions and 42 deletions

View File

@ -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) {

View File

@ -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();