~mterry/+junk/u8.2

« back to all changes in this revision

Viewing changes to tests/mocks/QMenuModel/unitymenumodel.cpp

  • Committer: Michael Terry
  • Date: 2014-11-17 14:56:04 UTC
  • mfrom: (1317.1.118 unity8)
  • Revision ID: michael.terry@canonical.com-20141117145604-96dn9p5nwkifq2f4
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
{
51
51
    beginResetModel();
52
52
 
53
 
    m_modelData.clear();
54
53
    m_modelData = data.toList();
 
54
    Q_EMIT modelDataChanged();
55
55
 
56
56
    endResetModel();
57
57
}
58
58
 
59
 
 
60
59
void UnityMenuModel::insertRow(int row, const QVariant& data)
61
60
{
62
61
    row = qMin(row, rowCount());