videocollection/videocollectionwrapper/src/videosortfilterproxymodel.cpp
changeset 37 4eb2df7f7cbe
parent 36 8aed59de29f9
child 39 f6d44a0cd476
equal deleted inserted replaced
36:8aed59de29f9 37:4eb2df7f7cbe
    13 *
    13 *
    14 * Description:   Videosortfilterproxymodel implementation
    14 * Description:   Videosortfilterproxymodel implementation
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 63 %
    18 // Version : %version: 65 %
    19 
    19 
    20 // INCLUDE FILES
    20 // INCLUDE FILES
    21 #include <qstringlist.h>
    21 #include <qstringlist.h>
    22 #include <qset.h>
    22 #include <qset.h>
    23 #include <qtimer.h>
    23 #include <qtimer.h>
   789 	FUNC_LOG_ADDR(this);
   789 	FUNC_LOG_ADDR(this);
   790     // ignore if not collection content model
   790     // ignore if not collection content model
   791     if (mType == VideoCollectionCommon::EModelTypeCollectionContent)
   791     if (mType == VideoCollectionCommon::EModelTypeCollectionContent)
   792     {
   792     {
   793         INFO_1("VideoSortFilterProxyModel::albumChangedSlot() [0x%x] invalidating.", this);
   793         INFO_1("VideoSortFilterProxyModel::albumChangedSlot() [0x%x] invalidating.", this);
   794 	    //otherwise newle created album content won't sort
   794 	    // sort and invalidate filtering, otherwise newle created album content won't sort
       
   795     	invalidateFilter();
   795         setSortRole(mWantedSortRole);
   796         setSortRole(mWantedSortRole);
   796         sort(0, mWantedSortOrder);
   797         sort(0, mWantedSortOrder);
   797     	invalidateFilter();
       
   798     }
   798     }
   799 }
   799 }
   800 
   800 
   801 // -----------------------------------------------------------------------------
   801 // -----------------------------------------------------------------------------
   802 // VideoSortFilterProxyModel::itemModifiedSlot()
   802 // VideoSortFilterProxyModel::itemModifiedSlot()