equal
deleted
inserted
replaced
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 */ |
396 /*! |
413 /*! |
397 * |
414 * |
398 */ |
415 */ |
399 void RadioCarouselItem::updateLayout() |
416 void RadioCarouselItem::updateLayout() |
400 { |
417 { |
401 setAppearance( mStation->hasName() || mStation->hasRadiotext() || mStation->hasUrl() ? Full : Default ); |
418 setAppearance( mStation->hasSentRds() ? Full : Default ); |
402 } |
419 } |
403 |
|