diff options
| author | Rafael Fernández López <[email protected]> | 2007-12-03 23:43:39 +0000 |
|---|---|---|
| committer | Rafael Fernández López <[email protected]> | 2007-12-03 23:43:39 +0000 |
| commit | f64141a6d15e9c598440b7e5c4022714def6e448 (patch) | |
| tree | 2d82d390ab073e101b468612eb5f53c9c268eedd /src/kcategorizedview.cpp | |
| parent | f42b43647189126112b10e2fd02218c512ccc1a9 (diff) | |
More changes will follow to fix logic. This makes the stuff compile.
CCMAIL: [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=744626
Diffstat (limited to 'src/kcategorizedview.cpp')
| -rw-r--r-- | src/kcategorizedview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kcategorizedview.cpp b/src/kcategorizedview.cpp index 894da2cae..7018b33bc 100644 --- a/src/kcategorizedview.cpp +++ b/src/kcategorizedview.cpp @@ -361,7 +361,7 @@ void KCategorizedView::Private::drawNewCategory(const QModelIndex &index, } QStyleOption optionCopy = option; - const QString category = proxyModel->data(index, KCategorizedSortFilterProxyModel::CategoryRole).toString(); + const QString category = proxyModel->data(index, KCategorizedSortFilterProxyModel::CategoryDisplayRole).toString(); optionCopy.state &= ~QStyle::State_Selected; @@ -1329,7 +1329,7 @@ void KCategorizedView::rowsInsertedArtifficial(const QModelIndex &parent, } // Add all elements mapped to the source model and explore categories - QString prevCategory = d->proxyModel->data(d->proxyModel->index(0, d->proxyModel->sortColumn()), KCategorizedSortFilterProxyModel::CategoryRole).toString(); + QString prevCategory = d->proxyModel->data(d->proxyModel->index(0, d->proxyModel->sortColumn()), KCategorizedSortFilterProxyModel::CategoryDisplayRole).toString(); QString lastCategory = prevCategory; QModelIndexList modelIndexList; struct Private::ElementInfo elementInfo; @@ -1346,7 +1346,7 @@ void KCategorizedView::rowsInsertedArtifficial(const QModelIndex &parent, d->modelIndexList << index; - lastCategory = d->proxyModel->data(index, KCategorizedSortFilterProxyModel::CategoryRole).toString(); + lastCategory = d->proxyModel->data(index, KCategorizedSortFilterProxyModel::CategoryDisplayRole).toString(); elementInfo.category = lastCategory; |
