~unity-team/qtmir/surfaceDrawn

« back to all changes in this revision

Viewing changes to src/modules/Unity/Application/mirsurfacelistmodel.cpp

  • Committer: Nick Dedekind
  • Date: 2016-05-13 15:28:46 UTC
  • mfrom: (484.2.2 qtmir)
  • Revision ID: nick.dedekind@canonical.com-20160513152846-m8zgobnwshyfz6h0
merged with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
{
29
29
}
30
30
 
 
31
MirSurfaceListModel::~MirSurfaceListModel()
 
32
{
 
33
    Q_EMIT destroyed(this); // Early warning, while MirSurfaceListModel methods can still be accessed.
 
34
}
 
35
 
31
36
int MirSurfaceListModel::rowCount(const QModelIndex &parent) const
32
37
{
33
38
    return !parent.isValid() ? m_surfaceList.size() : 0;