descriptionLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
layout->addWidget(descriptionLabel);
+ /*
progressBar = new QProgressBar(this);
progressBar->hide();
layout->addWidget(progressBar);
+ */
setLayout(layout);
}
// enhance legibility by splitting the title
title = title.replace(" - ", "<p>");
title = title.replace("] ", "]<p>");
+ title = title.replace(" [", "<p>[");
titleLabel->setText(title);
descriptionLabel->setText(video->description());
- progressBar->hide();
+ // progressBar->hide();
}
void LoadingWidget::bufferStatus(int percent) {
+ /*
qDebug() << percent;
progressBar->setShown(percent > 0);
progressBar->setValue(percent);
-}
-
-void LoadingWidget::paintEvent(QPaintEvent *) {
-
- /*
- QPainter painter(this);
- painter.fillRect(0, 0, width(), height(), Qt::black);
*/
-
}
public slots:
void bufferStatus(int);
-protected:
- void paintEvent(QPaintEvent *event);
-
private:
QLabel *titleLabel;
QLabel *descriptionLabel;
- QProgressBar *progressBar;
+ // TODO uncomment the whole progress bar feature
+ // when the Phonon backends will correctly emit bufferStatus(int)
+ // QProgressBar *progressBar;
};