Commit b20a5b6e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: fix progressBar timer

(cherry picked from commit 41669761ffdac7d0efb927bd7c51f3494fb7d7cd)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5a8bfcc4
...@@ -199,7 +199,6 @@ QVLCProgressDialog::QVLCProgressDialog (DialogHandler *parent, ...@@ -199,7 +199,6 @@ QVLCProgressDialog::QVLCProgressDialog (DialogHandler *parent,
setWindowTitle (qfu(data->title)); setWindowTitle (qfu(data->title));
setWindowRole ("vlc-progress"); setWindowRole ("vlc-progress");
setMinimumDuration (1200);
setValue( 0 ); setValue( 0 );
connect (this, SIGNAL(progressed(int)), SLOT(setValue(int))); connect (this, SIGNAL(progressed(int)), SLOT(setValue(int)));
...@@ -251,7 +250,7 @@ void DialogHandler::startProgressBar (vlc_object_t *, void *value) ...@@ -251,7 +250,7 @@ void DialogHandler::startProgressBar (vlc_object_t *, void *value)
dialog_progress_bar_t *data = (dialog_progress_bar_t *)value; dialog_progress_bar_t *data = (dialog_progress_bar_t *)value;
QWidget *dlg = new QVLCProgressDialog (this, data); QWidget *dlg = new QVLCProgressDialog (this, data);
QTimer::singleShot( 300, dlg, SLOT( show() ) ); QTimer::singleShot( 1500, dlg, SLOT( show() ) );
// dlg->show (); // dlg->show ();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment