Mailcommon

snippettreeview.h
1/*
2 snippet feature from kdevelop/plugins/snippet/
3
4 SPDX-FileCopyrightText: 2007 Robert Gruber <rgruber@users.sourceforge.net>
5 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9
10#pragma once
11
12#include "mailcommon_export.h"
13#include <QTreeView>
14
16
18
19namespace MailCommon
20{
21class SnippetsManager;
22struct SnippetInfo;
23/**
24 * @author Robert Gruber
25 */
26class MAILCOMMON_EXPORT SnippetTreeView : public QTreeView
27{
28 Q_OBJECT
29public:
30 explicit SnippetTreeView(KActionCollection *actionCollection, QWidget *parent = nullptr);
31 ~SnippetTreeView() override;
32
33 MailCommon::SnippetsManager *snippetsManager() const;
34
35protected:
36 void contextMenuEvent(QContextMenuEvent *) override;
37
38Q_SIGNALS:
39 void insertSnippetInfo(const SnippetInfo &info);
40
41private:
42 MailCommon::SnippetsManager *mSnippetsManager = nullptr;
43};
44}
The SnippetsManager class.
The filter dialog.
The SnippetInfo struct.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:12:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.