KTextEditor

completion.cpp
1/*
2 SPDX-FileCopyrightText: KDE Developers
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "completion.h"
8#include "katepartdebug.h"
9
10using namespace KateVi;
11
12Completion::Completion(const QString &completedText, bool removeTail, CompletionType completionType)
13 : m_completedText(completedText)
14 , m_removeTail(removeTail)
15 , m_completionType(completionType)
16{
17 if (m_completionType == FunctionWithArgs || m_completionType == FunctionWithoutArgs) {
18 qCDebug(LOG_KTE) << "Completing a function while not removing tail currently unsupported; will remove tail instead";
19 m_removeTail = true;
20 }
21}
22
23QString Completion::completedText() const
24{
25 return m_completedText;
26}
27
28bool Completion::removeTail() const
29{
30 return m_removeTail;
31}
32
33Completion::CompletionType Completion::completionType() const
34{
35 return m_completionType;
36}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:53:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.