Add placeholder text for safety

Just to make sure that details_ has the correct height when initializing
This commit is contained in:
Mark Furneaux 2014-05-14 22:06:02 -04:00
parent eb0b53aa96
commit 9d118345c0
1 changed files with 10 additions and 0 deletions

View File

@ -144,6 +144,16 @@ NowPlayingWidget::NowPlayingWidget(QWidget* parent)
SLOT(FadePreviousTrack(qreal)));
fade_animation_->setDirection(QTimeLine::Backward); // 1.0 -> 0.0
// add placeholder text to get the correct height
if (mode_ == LargeSongDetailsBelow) {
details_->setDefaultStyleSheet(
"p {"
" font-size: small;"
" color: white;"
"}");
details_->setHtml(QString("<p align=center><i></i><br/><br/></p>"));
}
UpdateHeight();
connect(album_cover_choice_controller_, SIGNAL(AutomaticCoverSearchDone()),