radioapp/radiowidgets/src/radiocarouselitem.cpp
changeset 38 f8c3d4e6102c
parent 36 ba22309243a1
child 51 bbebb0235466
equal deleted inserted replaced
36:ba22309243a1 38:f8c3d4e6102c
    62     mNameItem( NULL ),
    62     mNameItem( NULL ),
    63     mRadiotextItem( NULL ),
    63     mRadiotextItem( NULL ),
    64     mUrlItem( NULL ),
    64     mUrlItem( NULL ),
    65     mAppearance( Default ),
    65     mAppearance( Default ),
    66     mOwnsCss( registerCss ),
    66     mOwnsCss( registerCss ),
       
    67     mLandscapeMode( false ),
    67     mFlags( DefaultFlags )
    68     mFlags( DefaultFlags )
    68 {
    69 {
    69     mStation.reset( new RadioStation() );
    70     mStation.reset( new RadioStation() );
    70 
    71 
    71     if ( mOwnsCss ) {
    72     if ( mOwnsCss ) {
   240  *
   241  *
   241  */
   242  */
   242 RadioCarouselItem::Appearance RadioCarouselItem::appearance() const
   243 RadioCarouselItem::Appearance RadioCarouselItem::appearance() const
   243 {
   244 {
   244     return mAppearance;
   245     return mAppearance;
       
   246 }
       
   247 
       
   248 /*!
       
   249  *
       
   250  */
       
   251 void RadioCarouselItem::setLandscape( bool landscape )
       
   252 {
       
   253     mLandscapeMode = landscape;
       
   254 }
       
   255 
       
   256 /*!
       
   257  *
       
   258  */
       
   259 bool RadioCarouselItem::landscape() const
       
   260 {
       
   261     return mLandscapeMode;
   245 }
   262 }
   246 
   263 
   247 /*!
   264 /*!
   248  *
   265  *
   249  */
   266  */
   398  */
   415  */
   399 void RadioCarouselItem::updateLayout()
   416 void RadioCarouselItem::updateLayout()
   400 {
   417 {
   401     setAppearance( mStation->hasSentRds() ? Full : Default );
   418     setAppearance( mStation->hasSentRds() ? Full : Default );
   402 }
   419 }
   403