[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:35:46 CEST 2010
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Apr 28 13:30:54 2010 +0200| [a34b1862b0aa77fa948a4720e9410fd038ebeb3c] | 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>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a34b1862b0aa77fa948a4720e9410fd038ebeb3c
---
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