Changeset View
Changeset View
Standalone View
Standalone View
src/qt/openuridialog.cpp
Show All 10 Lines | |||||
#include <QUrl> | #include <QUrl> | ||||
OpenURIDialog::OpenURIDialog(const CChainParams ¶ms, QWidget *parent) | OpenURIDialog::OpenURIDialog(const CChainParams ¶ms, QWidget *parent) | ||||
: QDialog(parent), ui(new Ui::OpenURIDialog), | : QDialog(parent), ui(new Ui::OpenURIDialog), | ||||
uriScheme(QString::fromStdString(params.CashAddrPrefix())) { | uriScheme(QString::fromStdString(params.CashAddrPrefix())) { | ||||
ui->setupUi(this); | ui->setupUi(this); | ||||
ui->uriEdit->setPlaceholderText(uriScheme + ":"); | ui->uriEdit->setPlaceholderText(uriScheme + ":"); | ||||
GUIUtil::handleCloseWindowShortcut(this); | |||||
} | } | ||||
OpenURIDialog::~OpenURIDialog() { | OpenURIDialog::~OpenURIDialog() { | ||||
delete ui; | delete ui; | ||||
} | } | ||||
QString OpenURIDialog::getURI() { | QString OpenURIDialog::getURI() { | ||||
return ui->uriEdit->text(); | return ui->uriEdit->text(); | ||||
Show All 22 Lines |