~fboucault/dee-qt/array_support

« back to all changes in this revision

Viewing changes to deelistmodel.cpp

  • Committer: Florian Boucault
  • Date: 2011-07-15 09:13:37 UTC
  • Revision ID: florian@boucault.net-20110715091337-50keov6j6eiqu980
Return empty data when querying a role that does not exist.

Show diffs side-by-side

added added

removed removed

Lines of Context:
271
271
    if (!index.isValid())
272
272
        return QVariant();
273
273
 
 
274
    if (role >= dee_model_get_n_columns(d->m_deeModel)) {
 
275
        return QVariant();
 
276
    }
 
277
 
274
278
    GVariant* gvariant;
275
279
    DeeModelIter* iter;
276
280