~ubuntu-branches/ubuntu/oneiric/kdepim/oneiric-security

« back to all changes in this revision

Viewing changes to libkdepim/kcheckcombobox.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-12-22 18:24:40 UTC
  • mfrom: (0.2.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20101222182440-ju0oewt2kl096yii
Tags: 4:4.4.9-0ubuntu1
* New upstream release
* Readd kubuntu_02_kalarm_kstatusnotifieritem.diff inadvertently left out of
  debian/patches/series

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
{
93
93
  for ( int r = 0; r < model()->rowCount( rootModelIndex() ); ++r ) {
94
94
    QModelIndex indx = model()->index( r, modelColumn(), rootModelIndex() );
95
 
    QString text = indx.data().toString();
 
95
 
 
96
    // DisplayRole has " SubCategory"
 
97
    // UserRole has "Category:SubCategory"
 
98
    QString text = indx.data( Qt::UserRole ).toString();
96
99
    bool found = items.contains( text );
97
100
    model()->setData( indx, found ? Qt::Checked : Qt::Unchecked, Qt::CheckStateRole );
98
101
  }