Changeset View
Changeset View
Standalone View
Standalone View
src/qt/coincontroldialog.cpp
Show All 11 Lines | |||||
#include <qt/bitcoinunits.h> | #include <qt/bitcoinunits.h> | ||||
#include <qt/guiutil.h> | #include <qt/guiutil.h> | ||||
#include <qt/optionsmodel.h> | #include <qt/optionsmodel.h> | ||||
#include <qt/platformstyle.h> | #include <qt/platformstyle.h> | ||||
#include <qt/walletmodel.h> | #include <qt/walletmodel.h> | ||||
#include <txmempool.h> | #include <txmempool.h> | ||||
#include <validation.h> // For mempool | #include <validation.h> // For mempool | ||||
#include <wallet/coincontrol.h> | #include <wallet/coincontrol.h> | ||||
#include <wallet/fees.h> | |||||
#include <wallet/wallet.h> | #include <wallet/wallet.h> | ||||
#include <QApplication> | #include <QApplication> | ||||
#include <QCheckBox> | #include <QCheckBox> | ||||
#include <QCursor> | #include <QCursor> | ||||
#include <QDialogButtonBox> | #include <QDialogButtonBox> | ||||
#include <QFlags> | #include <QFlags> | ||||
#include <QIcon> | #include <QIcon> | ||||
▲ Show 20 Lines • Show All 603 Lines • ▼ Show 20 Lines | void CoinControlDialog::updateLabels(WalletModel *model, QDialog *dialog) { | ||||
l7->setStyleSheet((fDust) ? "color:red;" : ""); | l7->setStyleSheet((fDust) ? "color:red;" : ""); | ||||
// tool tips | // tool tips | ||||
QString toolTipDust = | QString toolTipDust = | ||||
tr("This label turns red if any recipient receives an amount smaller " | tr("This label turns red if any recipient receives an amount smaller " | ||||
"than the current dust threshold."); | "than the current dust threshold."); | ||||
// how many satoshis the estimated fee can vary per byte we guess wrong | // how many satoshis the estimated fee can vary per byte we guess wrong | ||||
double dFeeVary = GetMinimumFee(1000, g_mempool) / (1000 * SATOSHI); | double dFeeVary = (nBytes != 0) ? double(nPayFee / SATOSHI) / nBytes : 0; | ||||
QString toolTip4 = | QString toolTip4 = | ||||
tr("Can vary +/- %1 satoshi(s) per input.").arg(dFeeVary); | tr("Can vary +/- %1 satoshi(s) per input.").arg(dFeeVary); | ||||
l3->setToolTip(toolTip4); | l3->setToolTip(toolTip4); | ||||
l4->setToolTip(toolTip4); | l4->setToolTip(toolTip4); | ||||
l7->setToolTip(toolTipDust); | l7->setToolTip(toolTipDust); | ||||
l8->setToolTip(toolTip4); | l8->setToolTip(toolTip4); | ||||
▲ Show 20 Lines • Show All 184 Lines • Show Last 20 Lines |