From 9deccd317666abe6d954b40524c4708c957b1fb2 Mon Sep 17 00:00:00 2001
From: Erik Verbruggen <erik.verbruggen@nokia.com>
Date: Wed, 6 Oct 2010 13:43:22 +0200
Subject: [PATCH] C++ Editor: only show quickfix to insert a public
 declaration.

Reviewed-by: Roberto Raggi
---
 src/plugins/cppeditor/cppinsertdecldef.cpp | 50 +++++++++++-----------
 1 file changed, 25 insertions(+), 25 deletions(-)

diff --git a/src/plugins/cppeditor/cppinsertdecldef.cpp b/src/plugins/cppeditor/cppinsertdecldef.cpp
index e7ae40d85b3..6e2d51ab9af 100644
--- a/src/plugins/cppeditor/cppinsertdecldef.cpp
+++ b/src/plugins/cppeditor/cppinsertdecldef.cpp
@@ -155,31 +155,31 @@ QList<CppQuickFixOperation::Ptr> DeclFromDef::match(const CppQuickFixState &stat
                                 new InsertDeclOperation(state, idx, fn, clazz,
                                                         InsertionPointLocator::Public,
                                                         decl)));
-                results.append(
-                            singleResult(
-                                new InsertDeclOperation(state, idx, fn, clazz,
-                                                        InsertionPointLocator::Protected,
-                                                        decl)));
-                results.append(
-                            singleResult(
-                                new InsertDeclOperation(state, idx, fn, clazz,
-                                                        InsertionPointLocator::Private,
-                                                        decl)));
-                results.append(
-                            singleResult(
-                                new InsertDeclOperation(state, idx, fn, clazz,
-                                                        InsertionPointLocator::PublicSlot,
-                                                        decl)));
-                results.append(
-                            singleResult(
-                                new InsertDeclOperation(state, idx, fn, clazz,
-                                                        InsertionPointLocator::ProtectedSlot,
-                                                        decl)));
-                results.append(
-                            singleResult(
-                                new InsertDeclOperation(state, idx, fn, clazz,
-                                                        InsertionPointLocator::PrivateSlot,
-                                                        decl)));
+//                results.append(
+//                            singleResult(
+//                                new InsertDeclOperation(state, idx, fn, clazz,
+//                                                        InsertionPointLocator::Protected,
+//                                                        decl)));
+//                results.append(
+//                            singleResult(
+//                                new InsertDeclOperation(state, idx, fn, clazz,
+//                                                        InsertionPointLocator::Private,
+//                                                        decl)));
+//                results.append(
+//                            singleResult(
+//                                new InsertDeclOperation(state, idx, fn, clazz,
+//                                                        InsertionPointLocator::PublicSlot,
+//                                                        decl)));
+//                results.append(
+//                            singleResult(
+//                                new InsertDeclOperation(state, idx, fn, clazz,
+//                                                        InsertionPointLocator::ProtectedSlot,
+//                                                        decl)));
+//                results.append(
+//                            singleResult(
+//                                new InsertDeclOperation(state, idx, fn, clazz,
+//                                                        InsertionPointLocator::PrivateSlot,
+//                                                        decl)));
                 return results;
             } //! \todo support insertion of non-methods into namespaces
         }
-- 
GitLab