qt: define QT_NO_KEYWORDS
QT_NO_KEYWORDS prevents Qt from defining the `foreach`, `signals`, `slots` and `emit` macros. Avoid overlap between Qt macros and boost - for example #undef hackiness in #6421.
This commit is contained in:
@@ -153,7 +153,7 @@ void WalletView::processNewTransaction(const QModelIndex& parent, int start, int
|
||||
QString address = ttm->data(index, TransactionTableModel::AddressRole).toString();
|
||||
QString label = ttm->data(index, TransactionTableModel::LabelRole).toString();
|
||||
|
||||
emit incomingTransaction(date, walletModel->getOptionsModel()->getDisplayUnit(), amount, type, address, label);
|
||||
Q_EMIT incomingTransaction(date, walletModel->getOptionsModel()->getDisplayUnit(), amount, type, address, label);
|
||||
}
|
||||
|
||||
void WalletView::gotoOverviewPage()
|
||||
@@ -215,7 +215,7 @@ void WalletView::showOutOfSyncWarning(bool fShow)
|
||||
|
||||
void WalletView::updateEncryptionStatus()
|
||||
{
|
||||
emit encryptionStatusChanged(walletModel->getEncryptionStatus());
|
||||
Q_EMIT encryptionStatusChanged(walletModel->getEncryptionStatus());
|
||||
}
|
||||
|
||||
void WalletView::encryptWallet(bool status)
|
||||
@@ -239,11 +239,11 @@ void WalletView::backupWallet()
|
||||
return;
|
||||
|
||||
if (!walletModel->backupWallet(filename)) {
|
||||
emit message(tr("Backup Failed"), tr("There was an error trying to save the wallet data to %1.").arg(filename),
|
||||
Q_EMIT message(tr("Backup Failed"), tr("There was an error trying to save the wallet data to %1.").arg(filename),
|
||||
CClientUIInterface::MSG_ERROR);
|
||||
}
|
||||
else {
|
||||
emit message(tr("Backup Successful"), tr("The wallet data was successfully saved to %1.").arg(filename),
|
||||
Q_EMIT message(tr("Backup Successful"), tr("The wallet data was successfully saved to %1.").arg(filename),
|
||||
CClientUIInterface::MSG_INFORMATION);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user