~lightdm-team/lightdm/1.4

« back to all changes in this revision

Viewing changes to liblightdm-qt/QLightDM/sessionsmodel.cpp

  • Committer: David Edmundson
  • Date: 2011-06-04 18:14:27 UTC
  • Revision ID: david@davidedmundson.co.uk-20110604181427-b8sp1uajftlipfuc
Make the session selector work in Qt Demo Greeter.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
    int row = index.row();
54
54
 
55
55
    switch (role) {
 
56
    case SessionsModel::IdRole:
 
57
        return d->items[row].id;
56
58
    case Qt::DisplayRole:
57
59
        return d->items[row].name;
58
60
    case Qt::ToolTipRole: