qtinternetradio/ui/src/irstationdetailsview.cpp
changeset 17 38bbf2dcd608
parent 15 065198191975
equal deleted inserted replaced
16:5723da102db1 17:38bbf2dcd608
    50 }
    50 }
    51 
    51 
    52 /*
    52 /*
    53  * Description : update the station information.
    53  * Description : update the station information.
    54  */
    54  */
    55 void IRStationDetailsView::setDetails(IRQPreset * aPreset)
    55 void IRStationDetailsView::setDetails(const IRQPreset * aPreset)
    56 {
    56 {
    57     iStationName->setPlainText(aPreset->name);
    57     iStationName->setPlainText(aPreset->nickName);
    58     iGenres->setPlainText(aPreset->genreName);
    58     iGenres->setPlainText(aPreset->genreName);
    59     iLanguage->setPlainText(aPreset->languageName);
    59     iLanguage->setPlainText(aPreset->languageName);
    60     iCountry->setPlainText(aPreset->countryName);
    60     iCountry->setPlainText(aPreset->countryName);
    61 
    61 
    62     unsigned int bitrate = 0;
    62     unsigned int bitrate = 0;
    78  * Description : update the station information.
    78  * Description : update the station information.
    79  */
    79  */
    80 void IRStationDetailsView::setDetails()
    80 void IRStationDetailsView::setDetails()
    81 {
    81 {
    82     IRQPreset *nowPlayingPreset = iPlayController->getNowPlayingPreset();
    82     IRQPreset *nowPlayingPreset = iPlayController->getNowPlayingPreset();
    83     iStationName->setPlainText(nowPlayingPreset->name);
    83     iStationName->setPlainText(nowPlayingPreset->nickName);
    84     iGenres->setPlainText(nowPlayingPreset->genreName);
    84     iGenres->setPlainText(nowPlayingPreset->genreName);
    85     iLanguage->setPlainText(nowPlayingPreset->languageName);
    85     iLanguage->setPlainText(nowPlayingPreset->languageName);
    86     iCountry->setPlainText(nowPlayingPreset->countryName);
    86     iCountry->setPlainText(nowPlayingPreset->countryName);
    87     iBitRate->setPlainText(QString::number(iPlayController->getNowPlayingBitRate()) + QString("kbps"));
    87     iBitRate->setPlainText(QString::number(iPlayController->getNowPlayingBitRate()) + QString("kbps"));
    88     iDescription->setPlainText(nowPlayingPreset->description);
    88     iDescription->setPlainText(nowPlayingPreset->description);