From eab78c5c0348837ade98ede92992033d80f5167d Mon Sep 17 00:00:00 2001 From: defnax Date: Mon, 18 Jan 2010 22:02:40 +0000 Subject: [PATCH] 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 --- retroshare-gui/src/gui/GenCertDialog.cpp | 6 ++++++ retroshare-gui/src/gui/GenCertDialog.h | 2 ++ retroshare-gui/src/gui/GenCertDialog.ui | 9 ++++++++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/GenCertDialog.cpp b/retroshare-gui/src/gui/GenCertDialog.cpp index d05bbf68c..23f5ed49d 100644 --- a/retroshare-gui/src/gui/GenCertDialog.cpp +++ b/retroshare-gui/src/gui/GenCertDialog.cpp @@ -27,6 +27,8 @@ #include "gui/settings/rsharesettings.h" #include #include +#include + #include /* 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(); diff --git a/retroshare-gui/src/gui/GenCertDialog.h b/retroshare-gui/src/gui/GenCertDialog.h index d5cd5a5c8..71e4f5244 100644 --- a/retroshare-gui/src/gui/GenCertDialog.h +++ b/retroshare-gui/src/gui/GenCertDialog.h @@ -61,6 +61,8 @@ private: /** Loads the saved connectidialog settings */ // void loadSettings(); void loadCertificates(); + + QMovie *movie; /** Qt Designer generated object */ Ui::GenCertDialog ui; diff --git a/retroshare-gui/src/gui/GenCertDialog.ui b/retroshare-gui/src/gui/GenCertDialog.ui index 6cc5e1ac3..c2fa5d3f7 100644 --- a/retroshare-gui/src/gui/GenCertDialog.ui +++ b/retroshare-gui/src/gui/GenCertDialog.ui @@ -1096,6 +1096,13 @@ p, li { white-space: pre-wrap; } + + + + + + + @@ -1122,7 +1129,7 @@ p, li { white-space: pre-wrap; } - Generate New Profil + Generate New Profile