radioapp/radiowidgets/src/radiocarouselitem.cpp
changeset 41 3a6b55c6390c
parent 33 11b6825f0862
child 53 bb6ed1806599
--- 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 );
 }
-