Pimcommon

lineeditwithcompleterng.h
1/*
2 SPDX-FileCopyrightText: 2017-2025 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{
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}
folderdialogacltab.h
QLineEdit(QWidget *parent)
Q_OBJECTQ_OBJECT
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Mar 7 2025 11:52:03 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.