5#include <qt/forms/ui_openuridialog.h>
8#include <chainparams.h>
16 uriScheme(QString::fromStdString(params.CashAddrPrefix())) {
28 return ui->uriEdit->text();
37 ui->uriEdit->setValid(
false);
43 this, tr(
"Select payment request file to open"),
"",
"",
nullptr);
44 if (filename.isEmpty()) {
47 QUrl fileUri = QUrl::fromLocalFile(filename);
49 ":?r=" + QUrl::toPercentEncoding(fileUri.toString()));
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.
void on_selectFileButton_clicked()
OpenURIDialog(const CChainParams ¶ms, QWidget *parent)
bool parseBitcoinURI(const QString &scheme, const QUrl &uri, SendCoinsRecipient *out)
void handleCloseWindowShortcut(QWidget *w)
QString getOpenFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedSuffixOut)
Get open filename, convenience wrapper for QFileDialog::getOpenFileName.