forked from qt-creator/qt-creator
ClangCodeModel: Let user choose the override
.... when following virtual function calls. This brings us up to par with the built-in code model. We do lose the icons, but they are of very little use in this context. Change-Id: I29b27d538e7277d06a5af7acee07bddb6eb94c98 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
|
||||
#include "cpptools_global.h"
|
||||
|
||||
#include <texteditor/codeassist/genericproposal.h>
|
||||
#include <texteditor/codeassist/iassistprovider.h>
|
||||
|
||||
#include <cplusplus/CppDocument.h>
|
||||
@@ -36,8 +37,26 @@
|
||||
#include <QSharedPointer>
|
||||
#include <QTextCursor>
|
||||
|
||||
namespace TextEditor {
|
||||
class AssistProposalItemInterface;
|
||||
class IAssistProposalWidget;
|
||||
}
|
||||
|
||||
namespace CppTools {
|
||||
|
||||
class CPPTOOLS_EXPORT VirtualFunctionProposal : public TextEditor::GenericProposal
|
||||
{
|
||||
public:
|
||||
VirtualFunctionProposal(int cursorPos,
|
||||
const QList<TextEditor::AssistProposalItemInterface *> &items,
|
||||
bool openInSplit);
|
||||
|
||||
private:
|
||||
TextEditor::IAssistProposalWidget *createWidget() const override;
|
||||
|
||||
bool m_openInSplit;
|
||||
};
|
||||
|
||||
class CPPTOOLS_EXPORT VirtualFunctionAssistProvider : public TextEditor::IAssistProvider
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
Reference in New Issue
Block a user