videocollection/videocollectionwrapper/tsrc/testvideosortfilterproxymodel/stub/src/videolistdatamodel.cpp
changeset 36 8aed59de29f9
parent 35 3738fe97f027
--- a/videocollection/videocollectionwrapper/tsrc/testvideosortfilterproxymodel/stub/src/videolistdatamodel.cpp	Thu Apr 01 23:32:44 2010 +0300
+++ b/videocollection/videocollectionwrapper/tsrc/testvideosortfilterproxymodel/stub/src/videolistdatamodel.cpp	Fri Apr 16 18:13:14 2010 +0300
@@ -180,14 +180,15 @@
         return returnValue;
     }
     int row = index.row();
-    if(role == Qt::DisplayRole)
+    if(role == VideoCollectionCommon::KeyTitle)
     {       
         if(row >= 0 && row < mData.count())
         {
             returnValue = mData.at(row)->mName;
         }
     }
-    else if(role == VideoCollectionCommon::KeySizeValue)
+    else if(role == VideoCollectionCommon::KeySizeValue || 
+            role == VideoCollectionCommon::KeyNumberOfItems)
     {
         if(row >= 0 && row < mData.count())
         {