blob: 04e2e2d98c8cae81c693d550ec9c33cb53123451 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#include "completionassistprovider.h"
#include <QChar>
using namespace TextEditor;
CompletionAssistProvider::CompletionAssistProvider(QObject *parent)
: IAssistProvider(parent)
{}
CompletionAssistProvider::~CompletionAssistProvider() = default;
IAssistProvider::RunType CompletionAssistProvider::runType() const
{
return AsynchronousWithThread;
}
int CompletionAssistProvider::activationCharSequenceLength() const
{
return 0;
}
bool CompletionAssistProvider::isActivationCharSequence(const QString &sequence) const
{
Q_UNUSED(sequence)
return false;
}
bool CompletionAssistProvider::isContinuationChar(const QChar &c) const
{
return c.isLetterOrNumber() || c == QLatin1Char('_');
}
|