mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-02 03:16:18 -05:00
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:
parent
537d767a24
commit
eab78c5c03
@ -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();
|
||||
|
@ -62,6 +62,8 @@ private:
|
||||
// void loadSettings();
|
||||
void loadCertificates();
|
||||
|
||||
QMovie *movie;
|
||||
|
||||
/** Qt Designer generated object */
|
||||
Ui::GenCertDialog ui;
|
||||
|
||||
|
@ -1096,6 +1096,13 @@ p, li { white-space: pre-wrap; }
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="progress_label">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
@ -1122,7 +1129,7 @@ p, li { white-space: pre-wrap; }
|
||||
<item row="2" column="2">
|
||||
<widget class="QPushButton" name="genButton">
|
||||
<property name="text">
|
||||
<string>Generate New Profil</string>
|
||||
<string>Generate New Profile</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
Loading…
Reference in New Issue
Block a user