KTextAddons

textautogeneratehistorylistview.h
1/*
2 SPDX-FileCopyrightText: 2025 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8#include "textautogeneratetext_private_export.h"
9#include <QListView>
10
11namespace TextAutogenerateText
12{
14class TEXTAUTOGENERATETEXT_TESTS_EXPORT TextAutogenerateHistoryListView : public QListView
15{
16 Q_OBJECT
17public:
18 explicit TextAutogenerateHistoryListView(QWidget *parent = nullptr);
19 ~TextAutogenerateHistoryListView() override;
20
21 void slotSearchTextChanged(const QString &str);
22
23Q_SIGNALS:
24 void goToDiscussion(const QByteArray &uuid);
25
26protected:
27 void contextMenuEvent(QContextMenuEvent *event) override;
28 void keyPressEvent(QKeyEvent *event) override;
29
30private:
31 TEXTAUTOGENERATETEXT_NO_EXPORT void slotClicked(const QModelIndex &idx);
32 TextAutoGenerateHistorySortFilterProxyModel *const mHistoryProxyModel;
33};
34}
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 12:06:03 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.