void setEncryptionStatus(int status) { if (status == WalletModel::Locked) { // -- Wallet is locked, clear secure message display. cachedMessageTable.clear(); parent->reset(); // reload table view }; };
void setEncryptionStatus(int status) { if (status == WalletModel::Locked) { // -- Wallet is locked, clear secure message display. cachedMessageTable.clear(); #if QT_VERSION <0x050000 parent->reset(); // reload table view #else parent->beginResetModel(); parent->endResetModel(); #endif }; };
void walletUnlocked() { // -- wallet is unlocked, can get at the private keys now refreshMessageTable(); parent->reset(); // reload table view if (parent->proxyModel) { parent->proxyModel->setFilterRole(false); parent->proxyModel->setFilterFixedString(""); parent->resetFilter(); parent->proxyModel->setFilterRole(MessageModel::Ambiguous); parent->proxyModel->setFilterFixedString("true"); } //invalidateFilter() }
void walletUnlocked() { // -- wallet is unlocked, can get at the private keys now refreshMessageTable(); #if QT_VERSION <0x050000 parent->reset(); // reload table view #else parent->beginResetModel(); parent->endResetModel(); #endif if (parent->proxyModel) { parent->proxyModel->setFilterRole(false); parent->proxyModel->setFilterFixedString(""); parent->resetFilter(); parent->proxyModel->setFilterRole(MessageModel::Ambiguous); parent->proxyModel->setFilterFixedString("true"); } //invalidateFilter() }