Pimcommon

lineeditwithcompleterng.h
1/*
2 SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "pimcommon_export.h"
10#include <QLineEdit>
12namespace PimCommon
13{
14/**
15 * @brief The LineEditWithCompleterNg class
16 * @author Laurent Montel <montel@kde.org>
17 */
18class PIMCOMMON_EXPORT LineEditWithCompleterNg : public QLineEdit
19{
20 Q_OBJECT
21public:
22 explicit LineEditWithCompleterNg(QWidget *parent = nullptr);
23 ~LineEditWithCompleterNg() override;
24
25 void addCompletionItem(const QString &str);
26 void slotClearHistory();
27
28protected:
29 void contextMenuEvent(QContextMenuEvent *e) override;
30
31private:
32 QStringListModel *const mCompleterListModel;
33 QStringList mListCompetion;
34};
35}
The LineEditWithCompleterNg class.
folderdialogacltab.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:39:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.