~ubuntu-branches/ubuntu/quantal/kdepim/quantal

« back to all changes in this revision

Viewing changes to mobile/tasks/tasklistproxy.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:51 UTC
  • mto: This revision was merged to the branch mainline in revision 193.
  • Revision ID: package-import@ubuntu.com-20111215141751-bmhdpiwl23wd9w26
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
        return Qt::transparent;
58
58
      case IsSubTaskRole:
59
59
        return !incidence->relatedTo( KCalCore::Todo::RelTypeParent ).isEmpty();
 
60
      case SingleLineDescriptionRole:
 
61
        return incidence->description().replace( '\n', ' ' );
 
62
      case HasDescriptionRole:
 
63
        return !incidence->description().isEmpty();
60
64
    }
61
65
  }
62
66
 
95
99
  names.insert( PercentCompleteRole, "percentComplete" );
96
100
  names.insert( BackgroundColorRole, "backgroundColor" );
97
101
  names.insert( IsSubTaskRole, "isSubTask" );
 
102
  names.insert( SingleLineDescriptionRole, "singleLineDescription" );
 
103
  names.insert( HasDescriptionRole, "hasDescription" );
98
104
 
99
105
  setRoleNames( names );
100
106
}