~agateau/unity-2d/tile-model

« back to all changes in this revision

Viewing changes to places/app/abstracttile.cpp

  • Committer: Aurelien Gateau
  • Date: 2011-08-04 15:09:13 UTC
  • Revision ID: aurelien.gateau@canonical.com-20110804150913-q6nnf0yt3tgve1jk
[dash] Introduce DefaultApplicationTile

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    return m_icon;
41
41
}
42
42
 
 
43
QSize AbstractTile::iconSize() const
 
44
{
 
45
    return m_iconSize;
 
46
}
 
47
 
43
48
void AbstractTile::setLabel(const QString& label)
44
49
{
45
50
    if (m_label != label) {
55
60
        iconChanged(m_icon);
56
61
    }
57
62
}
 
63
 
 
64
void AbstractTile::setIconSize(const QSize& iconSize)
 
65
{
 
66
    if (m_iconSize != iconSize) {
 
67
        m_iconSize = iconSize;
 
68
        iconSizeChanged(m_iconSize);
 
69
    }
 
70
}