Exemple #1
0
    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
        };
    };
Exemple #2
0
    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()
    }