equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Videosortfilterproxymodel implementation |
14 * Description: Videosortfilterproxymodel implementation |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: 65 % |
18 // Version : %version: 66 % |
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> |
523 // VideoSortFilterProxyModel::getMediaIdAtIndex() |
523 // VideoSortFilterProxyModel::getMediaIdAtIndex() |
524 // ----------------------------------------------------------------------------- |
524 // ----------------------------------------------------------------------------- |
525 // |
525 // |
526 TMPXItemId VideoSortFilterProxyModel::getMediaIdAtIndex(const QModelIndex &index) const |
526 TMPXItemId VideoSortFilterProxyModel::getMediaIdAtIndex(const QModelIndex &index) const |
527 { |
527 { |
528 QModelIndex sourceIndex = mapToSource(index); |
|
529 TMPXItemId mpxId = TMPXItemId::InvalidId(); |
528 TMPXItemId mpxId = TMPXItemId::InvalidId(); |
530 if(mModel && sourceIndex.isValid()) |
529 if(index.isValid()) |
531 { |
530 { |
532 mpxId = mModel->mediaIdAtIndex(sourceIndex.row()); |
531 QModelIndex sourceIndex = mapToSource(index); |
|
532 if(mModel && sourceIndex.isValid()) |
|
533 { |
|
534 mpxId = mModel->mediaIdAtIndex(sourceIndex.row()); |
|
535 } |
533 } |
536 } |
534 return mpxId; |
537 return mpxId; |
535 } |
538 } |
536 |
539 |
537 // ----------------------------------------------------------------------------- |
540 // ----------------------------------------------------------------------------- |