diff -r 11b6825f0862 -r 3a6b55c6390c radioapp/radiowidgets/src/radiocarouselitem.cpp --- a/radioapp/radiowidgets/src/radiocarouselitem.cpp Tue Jul 06 14:16:27 2010 +0300 +++ b/radioapp/radiowidgets/src/radiocarouselitem.cpp Wed Aug 18 09:49:03 2010 +0300 @@ -64,6 +64,7 @@ mUrlItem( NULL ), mAppearance( Default ), mOwnsCss( registerCss ), + mLandscapeMode( false ), mFlags( DefaultFlags ) { mStation.reset( new RadioStation() ); @@ -247,6 +248,22 @@ /*! * */ +void RadioCarouselItem::setLandscape( bool landscape ) +{ + mLandscapeMode = landscape; +} + +/*! + * + */ +bool RadioCarouselItem::landscape() const +{ + return mLandscapeMode; +} + +/*! + * + */ void RadioCarouselItem::setSeekLayout( bool seekLayout ) { if ( seekLayout ) { @@ -398,6 +415,5 @@ */ void RadioCarouselItem::updateLayout() { - setAppearance( mStation->hasName() || mStation->hasRadiotext() || mStation->hasUrl() ? Full : Default ); + setAppearance( mStation->hasSentRds() ? Full : Default ); } -