forked from qt-creator/qt-creator
GenericProposalModel: Rename PrefixMatch to ProposalMatch
Change-Id: I70e583d489f27b2dad1b9ab874091e638bbaff1f Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
committed by
André Hartmann
parent
404a4295ce
commit
a7bf0c0ea1
@@ -52,9 +52,9 @@ void ClangAssistProposalModel::sort(const QString &/*prefix*/)
|
||||
|
||||
auto currentItemsCompare = [](AssistProposalItemInterface *first,
|
||||
AssistProposalItemInterface *second) {
|
||||
if (first->prefixMatch() != second->prefixMatch()) {
|
||||
return static_cast<int>(first->prefixMatch())
|
||||
< static_cast<int>(second->prefixMatch());
|
||||
if (first->proposalMatch() != second->proposalMatch()) {
|
||||
return static_cast<int>(first->proposalMatch())
|
||||
< static_cast<int>(second->proposalMatch());
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user