test: Add tests for tableView in AddressBookPage dialog#591
Merged
hebasto merged 2 commits intobitcoin-core:masterfrom May 9, 2022
Merged
test: Add tests for tableView in AddressBookPage dialog#591hebasto merged 2 commits intobitcoin-core:masterfrom
tableView in AddressBookPage dialog#591hebasto merged 2 commits intobitcoin-core:masterfrom
Conversation
This change simplifies tests for `AddressBookPage` class. No user-faced behavior change.
Member
Author
This was referenced Apr 23, 2022
Merged
jarolrod
reviewed
Apr 27, 2022
Contributor
jarolrod
left a comment
There was a problem hiding this comment.
Concept ACK
in edae3ab, we can do this because when not specifying the connection type; there is an invokeMethod overload that uses Qt:AutoConnection. In this context Qt::AutoConnection will really be Qt::QueuedConnection1 because the receiver and emitter are in different threads.
promag
reviewed
May 9, 2022
|
|
||
| qDebug() << "NotifyAddressBookChanged: " + strAddress + " " + strLabel + " isMine=" + QString::number(isMine) + " purpose=" + strPurpose + " status=" + QString::number(status); | ||
| bool invoked = QMetaObject::invokeMethod(walletmodel, "updateAddressBook", Qt::QueuedConnection, | ||
| bool invoked = QMetaObject::invokeMethod(walletmodel, "updateAddressBook", |
Contributor
There was a problem hiding this comment.
Could replace with lambda while touching this code.
sidhujag
pushed a commit
to syscoin/syscoin
that referenced
this pull request
May 9, 2022
…ssBookPage` dialog 1506913 qt, test: Add tests for `tableView` in `AddressBookPage` dialog (Hennadii Stepanov) edae3ab qt: No need to force Qt::QueuedConnection for NotifyAddressBookChanged (Hennadii Stepanov) Pull request description: This PR is a prerequisite for more thorough testing of filtering in the `AddressBookPage` class in context of bitcoin-core/gui#578 and bitcoin-core/gui#585. Required for bitcoin-core/gui#592. ACKs for top commit: promag: Code review ACK 1506913. Tree-SHA512: 86986d47606cbd54d813436c7afb21894e2200b6d3042a7aa0b5e84821c765bd68b14ad38a445069891ab33f2d7bcd4933b8373e14e9afb0c91f1a6ddf4da740
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is a prerequisite for more thorough testing of filtering in the
AddressBookPageclass in context of #578 and #585.Required for #592.