Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
receiverequestdialog.cpp
Go to the documentation of this file.
70 QString fn = GUIUtil::getSaveFileName(this, tr("Save QR Code"), QString(), tr("PNG Image (*.png)"), nullptr);
145 html += QString("<a style=\"%1\"href=\"").arg(GUIUtil::getThemedStyleQString(GUIUtil::ThemedStyle::TS_COMMAND)) +
149 html += "<b>"+tr("Amount")+"</b>: " + BitcoinUnits::formatHtmlWithUnit(model->getDisplayUnit(), info.amount) + "<br>";
163 ui->lblQRCode->setText(tr("Resulting URI too long, try to reduce the text for label / message."));
178 qrImage.setPixel(x + 3, y + 3, ((*p & 1) ? GUIUtil::getThemedQColor(GUIUtil::ThemedColor::QR_PIXEL).rgb() : GUIUtil::getThemedQColor(GUIUtil::ThemedColor::BACKGROUND_WIDGET).rgb()));
187 QImage qrAddrImage = QImage(qrAddrImageWidth * scale, qrAddrImageHeight * scale, QImage::Format_RGB32);
192 // Create a 2px/2px smaller rect and fill it with background color to keep the 1px border with the border color
194 painter.fillRect(paddedRect, GUIUtil::getThemedQColor(GUIUtil::ThemedColor::BACKGROUND_WIDGET));
198 qreal font_size = GUIUtil::calculateIdealFontSize((paddedRect.width() - 20), info.address, font);
Definition: addressbookpage.h:12
static QString formatHtmlWithUnit(int unit, const CAmount &amount, bool plussign=false, SeparatorStyle separators=separatorStandard)
Format as HTML string (with unit)
Definition: bitcoinunits.cpp:167
QColor getThemedQColor(ThemedColor color)
Helper to get colors for various themes which can't be applied via css for some reason.
Definition: guiutil.cpp:204
QString HtmlEscape(const QString &str, bool fMultiLine)
Definition: guiutil.cpp:481
Definition: receiverequestdialog.h:48
QString formatBitcoinURI(const SendCoinsRecipient &info)
Definition: guiutil.cpp:445
virtual void contextMenuEvent(QContextMenuEvent *event) override
Definition: receiverequestdialog.cpp:84
void updateFonts()
Update the font of all widgets where a custom font has been set with GUIUtil::setFont.
Definition: guiutil.cpp:1563
ReceiveRequestDialog(QWidget *parent=0)
Definition: receiverequestdialog.cpp:91
void on_btnCopyAddress_clicked()
Definition: receiverequestdialog.cpp:219
qreal calculateIdealFontSize(int width, const QString &text, QFont font, qreal minPointSize, qreal font_size)
Definition: guiutil.cpp:1947
void setInfo(const SendCoinsRecipient &info)
Definition: receiverequestdialog.cpp:124
Definition: walletmodel.h:39
virtual void mousePressEvent(QMouseEvent *event) override
Definition: receiverequestdialog.cpp:50
Interface from Qt to configuration data structure for Bitcoin client.
Definition: optionsmodel.h:25
QString getSaveFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedSuffixOut)
Get save filename, mimics QFileDialog::getSaveFileName, except that it appends a default suffix when ...
Definition: guiutil.cpp:521
QString getThemedStyleQString(ThemedStyle style)
Helper to get css style strings which are injected into rich text through qt.
Definition: guiutil.cpp:210
void setModel(OptionsModel *model)
Definition: receiverequestdialog.cpp:113
void on_btnCopyURI_clicked()
Definition: receiverequestdialog.cpp:214
~ReceiveRequestDialog()
Definition: receiverequestdialog.cpp:108