Changeset View
Changeset View
Standalone View
Standalone View
src/qt/sendcoinsdialog.cpp
Show First 20 Lines • Show All 387 Lines • ▼ Show 20 Lines | questionString.append( | ||||
model->getOptionsModel()->getDisplayUnit(), totalAmount))); | model->getOptionsModel()->getDisplayUnit(), totalAmount))); | ||||
questionString.append( | questionString.append( | ||||
QString("<br /><span style='font-size:10pt; " | QString("<br /><span style='font-size:10pt; " | ||||
"font-weight:normal;'>(=%1)</span>") | "font-weight:normal;'>(=%1)</span>") | ||||
.arg(alternativeUnits.join(" " + tr("or") + " "))); | .arg(alternativeUnits.join(" " + tr("or") + " "))); | ||||
SendConfirmationDialog confirmationDialog( | SendConfirmationDialog confirmationDialog( | ||||
tr("Confirm send coins"), questionString.arg(formatted.join("<br />")), | tr("Confirm send coins"), questionString.arg(formatted.join("<br />")), | ||||
SEND_CONFIRM_DELAY, this); | "", "", SEND_CONFIRM_DELAY, this); | ||||
confirmationDialog.exec(); | confirmationDialog.exec(); | ||||
QMessageBox::StandardButton retval = | QMessageBox::StandardButton retval = | ||||
static_cast<QMessageBox::StandardButton>(confirmationDialog.result()); | static_cast<QMessageBox::StandardButton>(confirmationDialog.result()); | ||||
if (retval != QMessageBox::Yes) { | if (retval != QMessageBox::Yes) { | ||||
fNewRecipientAllowed = true; | fNewRecipientAllowed = true; | ||||
return; | return; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 509 Lines • ▼ Show 20 Lines | if (CoinControlDialog::coinControl()->HasSelected()) { | ||||
ui->labelCoinControlAutomaticallySelected->show(); | ui->labelCoinControlAutomaticallySelected->show(); | ||||
ui->widgetCoinControl->hide(); | ui->widgetCoinControl->hide(); | ||||
ui->labelCoinControlInsuffFunds->hide(); | ui->labelCoinControlInsuffFunds->hide(); | ||||
} | } | ||||
} | } | ||||
SendConfirmationDialog::SendConfirmationDialog(const QString &title, | SendConfirmationDialog::SendConfirmationDialog(const QString &title, | ||||
const QString &text, | const QString &text, | ||||
const QString &informative_text, | |||||
const QString &detailed_text, | |||||
int _secDelay, QWidget *parent) | int _secDelay, QWidget *parent) | ||||
: QMessageBox(QMessageBox::Question, title, text, | : QMessageBox(parent), secDelay(_secDelay) { | ||||
QMessageBox::Yes | QMessageBox::Cancel, parent), | setIcon(QMessageBox::Question); | ||||
secDelay(_secDelay) { | // On macOS, the window title is ignored (as required by the macOS | ||||
// Guidelines). | |||||
setWindowTitle(title); | |||||
setText(text); | |||||
setInformativeText(informative_text); | |||||
setDetailedText(detailed_text); | |||||
setStandardButtons(QMessageBox::Yes | QMessageBox::Cancel); | |||||
setDefaultButton(QMessageBox::Cancel); | setDefaultButton(QMessageBox::Cancel); | ||||
yesButton = button(QMessageBox::Yes); | yesButton = button(QMessageBox::Yes); | ||||
updateYesButton(); | updateYesButton(); | ||||
connect(&countDownTimer, &QTimer::timeout, this, | connect(&countDownTimer, &QTimer::timeout, this, | ||||
&SendConfirmationDialog::countDown); | &SendConfirmationDialog::countDown); | ||||
} | } | ||||
int SendConfirmationDialog::exec() { | int SendConfirmationDialog::exec() { | ||||
Show All 23 Lines |