added Animation as progress when generating a new key

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2072 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-01-18 22:02:40 +00:00
parent 537d767a24
commit eab78c5c03
3 changed files with 16 additions and 1 deletions

View file

@ -27,6 +27,8 @@
#include "gui/settings/rsharesettings.h"
#include <QFileDialog>
#include <QMessageBox>
#include <QMovie>
#include <util/WidgetBackgroundImage.h>
/* Define the format used for displaying the date and time */
@ -139,6 +141,10 @@ void GenCertDialog::genPerson()
std::string err_string;
ui.no_gpg_key_label->setText(tr("Generating new GPG key, please be patient. Fill in your GPG password when asked."));
ui.no_gpg_key_label->show();
QMovie *movie = new QMovie(":/images/loader/progress.gif");
ui.progress_label->setMovie(movie);
movie->start();
movie->setSpeed(100); // 2x speed
ui.name_label->hide();
ui.name_input->hide();
ui.email_label->hide();