equal
deleted
inserted
replaced
58 delete mList; |
58 delete mList; |
59 TX_EXIT |
59 TX_EXIT |
60 } |
60 } |
61 |
61 |
62 /*! |
62 /*! |
|
63 Slot to be called data model has new data. |
|
64 Two cases: |
|
65 1) User deleted a song. |
|
66 2) New song found during 'Refresh' operation. |
|
67 */ |
|
68 void MpCollectionContainerAllSongs::dataReloaded() |
|
69 { |
|
70 TX_ENTRY |
|
71 MpCollectionListContainer::dataReloaded(); |
|
72 if ( mViewMode != MpCommon::FetchView ) { |
|
73 int count = mCollectionData->count(); |
|
74 QString details = hbTrId("txt_mus_subhead_ln_songs", count); |
|
75 mInfoBar->setHeading(details); |
|
76 } |
|
77 if ( mCollectionData->count() > 1 ) { |
|
78 emit shuffleEnabled(true); |
|
79 } |
|
80 else { |
|
81 emit shuffleEnabled(false); |
|
82 } |
|
83 TX_EXIT |
|
84 } |
|
85 |
|
86 /*! |
63 Sets up the container by organizing widgets according to its layout. |
87 Sets up the container by organizing widgets according to its layout. |
64 |
88 |
65 \reimp |
89 \reimp |
66 */ |
90 */ |
67 void MpCollectionContainerAllSongs::setupContainer() |
91 void MpCollectionContainerAllSongs::setupContainer() |