mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-06 21:58:57 -04:00
Added a ProgressBar for Profile Generation
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3134 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
927f8639b7
commit
f4186fb7c8
2 changed files with 19 additions and 8 deletions
|
@ -76,6 +76,7 @@ GenCertDialog::GenCertDialog(QWidget *parent, Qt::WFlags flags)
|
||||||
|
|
||||||
if (foundGPGKeys) {
|
if (foundGPGKeys) {
|
||||||
ui.no_gpg_key_label->hide();
|
ui.no_gpg_key_label->hide();
|
||||||
|
ui.progressBar->hide();
|
||||||
ui.new_gpg_key_checkbox->setChecked(false);
|
ui.new_gpg_key_checkbox->setChecked(false);
|
||||||
setWindowTitle(tr("Create new Location"));
|
setWindowTitle(tr("Create new Location"));
|
||||||
ui.genButton->setText(tr("Generate new Location"));
|
ui.genButton->setText(tr("Generate new Location"));
|
||||||
|
@ -198,10 +199,7 @@ void GenCertDialog::genPerson()
|
||||||
std::string err_string;
|
std::string err_string;
|
||||||
ui.no_gpg_key_label->setText(tr("Generating new GPG key, please be patient: this process needs generating large prime numbers, and can take some minutes on slow computers. \n\nFill in your GPG password when asked, to sign your new key."));
|
ui.no_gpg_key_label->setText(tr("Generating new GPG key, please be patient: this process needs generating large prime numbers, and can take some minutes on slow computers. \n\nFill in your GPG password when asked, to sign your new key."));
|
||||||
ui.no_gpg_key_label->show();
|
ui.no_gpg_key_label->show();
|
||||||
// QMovie *movie = new QMovie(":/images/loader/progress.gif");
|
ui.progressBar->show();
|
||||||
// ui.progress_label->setMovie(movie);
|
|
||||||
// movie->start();
|
|
||||||
// movie->setSpeed(100); // 2x speed
|
|
||||||
ui.new_gpg_key_checkbox->hide();
|
ui.new_gpg_key_checkbox->hide();
|
||||||
ui.name_label->hide();
|
ui.name_label->hide();
|
||||||
ui.name_input->hide();
|
ui.name_input->hide();
|
||||||
|
|
|
@ -604,7 +604,7 @@ border: 1px solid #CCCCCC;}</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" colspan="2">
|
<item row="2" column="0" colspan="2">
|
||||||
<widget class="QCheckBox" name="new_gpg_key_checkbox">
|
<widget class="QCheckBox" name="new_gpg_key_checkbox">
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
|
@ -637,7 +637,7 @@ p, li { white-space: pre-wrap; }
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="3" column="0">
|
||||||
<widget class="QLabel" name="progress_label">
|
<widget class="QLabel" name="progress_label">
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
|
@ -650,7 +650,7 @@ p, li { white-space: pre-wrap; }
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0" colspan="2">
|
<item row="4" column="0" colspan="2">
|
||||||
<layout class="QGridLayout" name="gridLayout_2">
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="genPGPuserlabel">
|
<widget class="QLabel" name="genPGPuserlabel">
|
||||||
|
@ -756,7 +756,7 @@ anonymous, you can use a fake email.</string>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0" colspan="2">
|
<item row="6" column="0" colspan="2">
|
||||||
<spacer name="verticalSpacer">
|
<spacer name="verticalSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
|
@ -769,6 +769,19 @@ anonymous, you can use a fake email.</string>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QProgressBar" name="progressBar">
|
||||||
|
<property name="maximum">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="value">
|
||||||
|
<number>-1</number>
|
||||||
|
</property>
|
||||||
|
<property name="textVisible">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue