[vlc-commits] commit: Qt: Do not show a progressDialogBar for too short a time. ( Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Wed Apr 28 13:38:17 CEST 2010


vlc/vlc-1.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Apr 28 13:30:54 2010 +0200| [1cae09b93f75940ad01565122d58ae0f1eba4b36] | committer: Jean-Baptiste Kempf 

Qt: Do not show a progressDialogBar for too short a time.
(cherry picked from commit d16e5aea59a43b335e9414c38900ff57f1fcc562)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit a34b1862b0aa77fa948a4720e9410fd038ebeb3c)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=1cae09b93f75940ad01565122d58ae0f1eba4b36
---

 modules/gui/qt4/dialogs/external.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/dialogs/external.cpp b/modules/gui/qt4/dialogs/external.cpp
index 67c6f1c..3798815 100644
--- a/modules/gui/qt4/dialogs/external.cpp
+++ b/modules/gui/qt4/dialogs/external.cpp
@@ -191,7 +191,8 @@ QVLCProgressDialog::QVLCProgressDialog (DialogHandler *parent,
     if (data->title != NULL)
         setWindowTitle (qfu(data->title));
     setWindowRole ("vlc-progress");
-    setMinimumDuration (0);
+    setMinimumDuration (300);
+    setValue( 0 );
 
     connect (this, SIGNAL(progressed(int)), SLOT(setValue(int)));
     connect (this, SIGNAL(described(const QString&)),
@@ -244,7 +245,7 @@ void DialogHandler::startProgressBar (vlc_object_t *, void *value)
     dialog_progress_bar_t *data = (dialog_progress_bar_t *)value;
     QWidget *dlg = new QVLCProgressDialog (this, data);
 
-    dlg->show ();
+//    dlg->show ();
 }
 
 void DialogHandler::stopProgressBar (QWidget *dlg)



More information about the vlc-commits mailing list