]> git.sur5r.net Git - minitube/commitdiff
Commented the progress bar out, since the Phonon backends are broken
authorFlavio Tordini <flavio.tordini@gmail.com>
Thu, 25 Jun 2009 09:31:17 +0000 (11:31 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Thu, 25 Jun 2009 09:31:17 +0000 (11:31 +0200)
anyway

src/loadingwidget.cpp
src/loadingwidget.h

index bc625008e820bd1b2d1ba63363cda64c6dcc35f8..bf6c3f35c17d400625bf9f207cf02601c208b603 100644 (file)
@@ -40,9 +40,11 @@ LoadingWidget::LoadingWidget(QWidget *parent) : QWidget(parent) {
     descriptionLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
     layout->addWidget(descriptionLabel);
 
+    /*
     progressBar = new QProgressBar(this);
     progressBar->hide();
     layout->addWidget(progressBar);
+    */
 
     setLayout(layout);
 }
@@ -52,22 +54,16 @@ void LoadingWidget::setVideo(Video *video) {
     // 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);
     */
-
 }
index 254717f229ff5c514b3a3584e025baa5683c2587..ba7ff105975db5382128d2dda70fa32f60ee5668 100644 (file)
@@ -15,13 +15,12 @@ public:
 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;
 
 };