本文整理汇总了C++中payAmountChanged函数的典型用法代码示例。如果您正苦于以下问题:C++ payAmountChanged函数的具体用法?C++ payAmountChanged怎么用?C++ payAmountChanged使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了payAmountChanged函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: connect
void SendCoinsEntry::setModel(WalletModel *model)
{
this->model = model;
// if(model && model->getOptionsModel())
// connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit()));
connect(ui->payAmount, SIGNAL(textChanged()), this, SIGNAL(payAmountChanged()));
clear();
}
示例2: SendCoinsEntry
SendCoinsEntry * MultisigDialog::addOutput()
{
SendCoinsEntry *entry = new SendCoinsEntry(this);
entry->setModel(model);
ui->outputs->addWidget(entry);
connect(entry, SIGNAL(removeEntry(SendCoinsEntry *)), this, SLOT(removeEntry(SendCoinsEntry *)));
connect(entry, SIGNAL(payAmountChanged()), this, SLOT(updateAmounts()));
updateRemoveEnabled();
entry->clear();
ui->scrollAreaWidgetContents_3->resize(ui->scrollAreaWidgetContents_3->sizeHint());
QScrollBar *bar = ui->scrollArea_3->verticalScrollBar();
if(bar)
bar->setSliderPosition(bar->maximum());
return entry;
}
示例3: SendCoinsEntry
SendCoinsEntry *SendCoinsDialog::addEntry()
{
SendCoinsEntry *entry = new SendCoinsEntry(platformStyle, this);
entry->setModel(model);
ui->entries->addWidget(entry);
connect(entry, SIGNAL(removeEntry(SendCoinsEntry*)), this, SLOT(removeEntry(SendCoinsEntry*)));
connect(entry, SIGNAL(payAmountChanged()), this, SLOT(coinControlUpdateLabels()));
connect(entry, SIGNAL(subtractFeeFromAmountChanged()), this, SLOT(coinControlUpdateLabels()));
// Focus the field, so that entry can start immediately
entry->clear();
entry->setFocus();
ui->scrollAreaWidgetContents->resize(ui->scrollAreaWidgetContents->sizeHint());
qApp->processEvents();
QScrollBar* bar = ui->scrollArea->verticalScrollBar();
if(bar)
bar->setSliderPosition(bar->maximum());
updateTabsAndLabels();
return entry;
}
示例4: connect
// Fill in label from address book, if address has an associated label
QString associatedLabel = model->getAddressTableModel()->labelForAddress(address);
if (!associatedLabel.isEmpty()) {
ui->addAsLabel->setText(associatedLabel);
}
}
void SendCoinsEntry::setModel(WalletModel *model) {
this->model = model;
if (model && model->getOptionsModel()) {
connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit()));
}
connect(ui->payAmount, SIGNAL(textChanged()), this, SIGNAL(payAmountChanged()));
clear();
}
void SendCoinsEntry::setRemoveEnabled(bool enabled) {
ui->deleteButton->setEnabled(enabled);
}
void SendCoinsEntry::clear() {
ui->payTo->clear();
ui->addAsLabel->clear();
ui->payAmount->clear();
ui->payTo->setFocus();
// update the display unit, to not use the default ("BTC")
updateDisplayUnit();