diff options
author | Cozz Lovan <cozzlovan@yahoo.com> | 2014-04-24 22:21:45 +0200 |
---|---|---|
committer | Cozz Lovan <cozzlovan@yahoo.com> | 2014-04-25 20:01:20 +0200 |
commit | 40c5b939f2bff960e397da6ae3651952adc68cbe (patch) | |
tree | 2e6ce47bb89c7daa525858cf6e965495f6088426 /src/qt/optionsdialog.cpp | |
parent | 4765b8c11679aeb76efd9ce907a5c17661d4b018 (diff) |
[Qt] Optionally add third party links to transaction context menu
Diffstat (limited to 'src/qt/optionsdialog.cpp')
-rw-r--r-- | src/qt/optionsdialog.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt/optionsdialog.cpp b/src/qt/optionsdialog.cpp index 394b5f3aea..96464d2cc0 100644 --- a/src/qt/optionsdialog.cpp +++ b/src/qt/optionsdialog.cpp @@ -96,6 +96,9 @@ OptionsDialog::OptionsDialog(QWidget *parent) : #endif } } +#if QT_VERSION >= 0x040700 + ui->thirdPartyTxUrls->setPlaceholderText("https://example.com/tx/%s"); +#endif ui->unit->setModel(new BitcoinUnits(this)); ui->transactionFee->setSingleStep(CTransaction::nMinTxFee); @@ -151,6 +154,7 @@ void OptionsDialog::setModel(OptionsModel *model) connect(ui->connectSocks, SIGNAL(clicked(bool)), this, SLOT(showRestartWarning())); /* Display */ connect(ui->lang, SIGNAL(valueChanged()), this, SLOT(showRestartWarning())); + connect(ui->thirdPartyTxUrls, SIGNAL(textChanged(const QString &)), this, SLOT(showRestartWarning())); } void OptionsDialog::setMapper() @@ -183,6 +187,7 @@ void OptionsDialog::setMapper() mapper->addMapping(ui->lang, OptionsModel::Language); mapper->addMapping(ui->unit, OptionsModel::DisplayUnit); mapper->addMapping(ui->displayAddresses, OptionsModel::DisplayAddresses); + mapper->addMapping(ui->thirdPartyTxUrls, OptionsModel::ThirdPartyTxUrls); } void OptionsDialog::enableOkButton() |