diff --git a/src/qt/bitcoingui.h b/src/qt/bitcoingui.h --- a/src/qt/bitcoingui.h +++ b/src/qt/bitcoingui.h @@ -217,18 +217,21 @@ void setNumBlocks(int count, const QDateTime &blockDate, double nVerificationProgress, bool headers); - /** Notify the user of an event from the core network or transaction - handling code. - @param[in] title the message box / notification title - @param[in] message the displayed text - @param[in] style modality and style definitions (icon and used - buttons - buttons only for message boxes) - @see CClientUIInterface::MessageBoxFlags - @param[in] ret pointer to a bool that will be modified to whether - Ok was clicked (modal only) + /** + * Notify the user of an event from the core network or transaction + * handling code. + * @param[in] title the message box / notification title + * @param[in] message the displayed text + * @param[in] style modality and style definitions (icon and used + * buttons - buttons only for message boxes) + * @see CClientUIInterface::MessageBoxFlags + * @param[in] ret pointer to a bool that will be modified to whether + * Ok was clicked (modal only) + * @param[in] detailed_message the text to be displayed in the details area */ void message(const QString &title, QString message, unsigned int style, - bool *ret = nullptr); + bool *ret = nullptr, + const QString &detailed_message = QString()); #ifdef ENABLE_WALLET void setCurrentWallet(WalletModel *wallet_model); diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -1161,7 +1161,8 @@ } void BitcoinGUI::message(const QString &title, QString message, - unsigned int style, bool *ret) { + unsigned int style, bool *ret, + const QString &detailed_message) { // Default title. On macOS, the window title is ignored (as required by the // macOS Guidelines). QString strTitle{PACKAGE_NAME}; @@ -1222,6 +1223,7 @@ QMessageBox mBox(static_cast(nMBoxIcon), strTitle, message, buttons, this); mBox.setTextFormat(Qt::PlainText); + mBox.setDetailedText(detailed_message); int r = mBox.exec(); if (ret != nullptr) { *ret = r == QMessageBox::Ok;