@@ -364,8 +364,7 @@ void SendCoinsDialog::on_sendButton_clicked()
364
364
questionString.append (QString (" <br /><span style='font-size:10pt; font-weight:normal;'>(=%1)</span>" )
365
365
.arg (alternativeUnits.join (" " + tr (" or" ) + " " )));
366
366
367
- SendConfirmationDialog confirmationDialog (tr (" Confirm send coins" ),
368
- questionString.arg (formatted.join (" <br />" )), SEND_CONFIRM_DELAY, this );
367
+ SendConfirmationDialog confirmationDialog (tr (" Confirm send coins" ), questionString.arg (formatted.join (" <br />" )), " " , " " , SEND_CONFIRM_DELAY, this );
369
368
confirmationDialog.exec ();
370
369
QMessageBox::StandardButton retval = static_cast <QMessageBox::StandardButton>(confirmationDialog.result ());
371
370
@@ -881,10 +880,15 @@ void SendCoinsDialog::coinControlUpdateLabels()
881
880
}
882
881
}
883
882
884
- SendConfirmationDialog::SendConfirmationDialog (const QString &title, const QString &text, int _secDelay,
885
- QWidget *parent) :
886
- QMessageBox(QMessageBox::Question, title, text, QMessageBox::Yes | QMessageBox::Cancel, parent), secDelay(_secDelay)
883
+ SendConfirmationDialog::SendConfirmationDialog (const QString& title, const QString& text, const QString& informative_text, const QString& detailed_text, int _secDelay, QWidget* parent)
884
+ : QMessageBox(parent), secDelay(_secDelay)
887
885
{
886
+ setIcon (QMessageBox::Question);
887
+ setWindowTitle (title); // On macOS, the window title is ignored (as required by the macOS Guidelines).
888
+ setText (text);
889
+ setInformativeText (informative_text);
890
+ setDetailedText (detailed_text);
891
+ setStandardButtons (QMessageBox::Yes | QMessageBox::Cancel);
888
892
setDefaultButton (QMessageBox::Cancel);
889
893
yesButton = button (QMessageBox::Yes);
890
894
updateYesButton ();
0 commit comments