mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
Remove the small PrivateSend buttons
This commit is contained in:
parent
3e6524b8d9
commit
be9643f66e
@ -579,61 +579,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_debugbuttons">
|
||||
<item>
|
||||
<widget class="QPushButton" name="privateSendAuto">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Try to manually submit a PrivateSend request.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Try Mix</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="privateSendReset">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Reset the current status of PrivateSend (can interrupt PrivateSend if it's in the process of Mixing, which can cost you money!)</string>
|
||||
</property>
|
||||
<property name="autoFillBackground">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Reset</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="privateSendInfo">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Information about PrivateSend and Mixing</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Info</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
|
@ -294,15 +294,9 @@ void OverviewPage::setWalletModel(WalletModel *model)
|
||||
connect(model->getOptionsModel(), SIGNAL(privateSentAmountChanged()), this, SLOT(updatePrivateSendProgress()));
|
||||
connect(model->getOptionsModel(), SIGNAL(advancedPSUIChanged(bool)), this, SLOT(updateAdvancedPSUI(bool)));
|
||||
|
||||
connect(ui->privateSendAuto, SIGNAL(clicked()), this, SLOT(privateSendAuto()));
|
||||
connect(ui->privateSendReset, SIGNAL(clicked()), this, SLOT(privateSendReset()));
|
||||
connect(ui->privateSendInfo, SIGNAL(clicked()), this, SLOT(privateSendInfo()));
|
||||
connect(ui->togglePrivateSend, SIGNAL(clicked()), this, SLOT(togglePrivateSend()));
|
||||
|
||||
// privatesend buttons will not react to spacebar must be clicked on
|
||||
ui->privateSendAuto->setFocusPolicy(Qt::NoFocus);
|
||||
ui->privateSendReset->setFocusPolicy(Qt::NoFocus);
|
||||
ui->privateSendInfo->setFocusPolicy(Qt::NoFocus);
|
||||
ui->togglePrivateSend->setFocusPolicy(Qt::NoFocus);
|
||||
}
|
||||
}
|
||||
@ -455,9 +449,6 @@ void OverviewPage::updateAdvancedPSUI(bool fShowAdvancedPSUI) {
|
||||
ui->privateSendProgress->setVisible(fShowAdvancedPSUI);
|
||||
ui->labelSubmittedDenomText->setVisible(fShowAdvancedPSUI);
|
||||
ui->labelSubmittedDenom->setVisible(fShowAdvancedPSUI);
|
||||
ui->privateSendAuto->setVisible(fShowAdvancedPSUI);
|
||||
ui->privateSendReset->setVisible(fShowAdvancedPSUI);
|
||||
ui->privateSendInfo->setVisible(true);
|
||||
ui->labelPrivateSendLastMessage->setVisible(fShowAdvancedPSUI);
|
||||
}
|
||||
|
||||
@ -575,23 +566,6 @@ void OverviewPage::privateSendStatus()
|
||||
ui->labelSubmittedDenom->setText(QString(privateSendClient.GetSessionDenoms().c_str()));
|
||||
}
|
||||
|
||||
void OverviewPage::privateSendAuto(){
|
||||
privateSendClient.DoAutomaticDenominating(*g_connman);
|
||||
}
|
||||
|
||||
void OverviewPage::privateSendReset(){
|
||||
privateSendClient.ResetPool();
|
||||
|
||||
QMessageBox::warning(this, tr("PrivateSend"),
|
||||
tr("PrivateSend was successfully reset."),
|
||||
QMessageBox::Ok, QMessageBox::Ok);
|
||||
}
|
||||
|
||||
void OverviewPage::privateSendInfo(){
|
||||
HelpMessageDialog dlg(this, HelpMessageDialog::pshelp);
|
||||
dlg.exec();
|
||||
}
|
||||
|
||||
void OverviewPage::togglePrivateSend(){
|
||||
QSettings settings;
|
||||
// Popup some information on first mixing
|
||||
@ -661,8 +635,6 @@ void OverviewPage::SetupTransactionList(int nNumItems) {
|
||||
|
||||
void OverviewPage::DisablePrivateSendCompletely() {
|
||||
ui->togglePrivateSend->setText("(" + tr("Disabled") + ")");
|
||||
ui->privateSendAuto->setText("(" + tr("Disabled") + ")");
|
||||
ui->privateSendReset->setText("(" + tr("Disabled") + ")");
|
||||
ui->framePrivateSend->setEnabled(false);
|
||||
if (nWalletBackups <= 0) {
|
||||
ui->labelPrivateSendEnabled->setText("<span style='color:red;'>(" + tr("Disabled") + ")</span>");
|
||||
|
@ -70,9 +70,6 @@ private:
|
||||
|
||||
private Q_SLOTS:
|
||||
void togglePrivateSend();
|
||||
void privateSendAuto();
|
||||
void privateSendReset();
|
||||
void privateSendInfo();
|
||||
void updateDisplayUnit();
|
||||
void updatePrivateSendProgress();
|
||||
void updateAdvancedPSUI(bool fShowAdvancedPSUI);
|
||||
|
Loading…
Reference in New Issue
Block a user