forked from qt-creator/qt-creator
C++ Editor: only show quickfix to insert a public declaration.
Reviewed-by: Roberto Raggi
This commit is contained in:
@@ -155,31 +155,31 @@ QList<CppQuickFixOperation::Ptr> DeclFromDef::match(const CppQuickFixState &stat
|
|||||||
new InsertDeclOperation(state, idx, fn, clazz,
|
new InsertDeclOperation(state, idx, fn, clazz,
|
||||||
InsertionPointLocator::Public,
|
InsertionPointLocator::Public,
|
||||||
decl)));
|
decl)));
|
||||||
results.append(
|
// results.append(
|
||||||
singleResult(
|
// singleResult(
|
||||||
new InsertDeclOperation(state, idx, fn, clazz,
|
// new InsertDeclOperation(state, idx, fn, clazz,
|
||||||
InsertionPointLocator::Protected,
|
// InsertionPointLocator::Protected,
|
||||||
decl)));
|
// decl)));
|
||||||
results.append(
|
// results.append(
|
||||||
singleResult(
|
// singleResult(
|
||||||
new InsertDeclOperation(state, idx, fn, clazz,
|
// new InsertDeclOperation(state, idx, fn, clazz,
|
||||||
InsertionPointLocator::Private,
|
// InsertionPointLocator::Private,
|
||||||
decl)));
|
// decl)));
|
||||||
results.append(
|
// results.append(
|
||||||
singleResult(
|
// singleResult(
|
||||||
new InsertDeclOperation(state, idx, fn, clazz,
|
// new InsertDeclOperation(state, idx, fn, clazz,
|
||||||
InsertionPointLocator::PublicSlot,
|
// InsertionPointLocator::PublicSlot,
|
||||||
decl)));
|
// decl)));
|
||||||
results.append(
|
// results.append(
|
||||||
singleResult(
|
// singleResult(
|
||||||
new InsertDeclOperation(state, idx, fn, clazz,
|
// new InsertDeclOperation(state, idx, fn, clazz,
|
||||||
InsertionPointLocator::ProtectedSlot,
|
// InsertionPointLocator::ProtectedSlot,
|
||||||
decl)));
|
// decl)));
|
||||||
results.append(
|
// results.append(
|
||||||
singleResult(
|
// singleResult(
|
||||||
new InsertDeclOperation(state, idx, fn, clazz,
|
// new InsertDeclOperation(state, idx, fn, clazz,
|
||||||
InsertionPointLocator::PrivateSlot,
|
// InsertionPointLocator::PrivateSlot,
|
||||||
decl)));
|
// decl)));
|
||||||
return results;
|
return results;
|
||||||
} //! \todo support insertion of non-methods into namespaces
|
} //! \todo support insertion of non-methods into namespaces
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user