Mailcommon

snippettreeview.h
1 /*
2  snippet feature from kdevelop/plugins/snippet/
3 
4  SPDX-FileCopyrightText: 2007 Robert Gruber <[email protected]>
5  SPDX-FileCopyrightText: 2019-2023 Laurent Montel <[email protected]>
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 
15 class KActionCollection;
16 
17 class QContextMenuEvent;
18 
19 namespace MailCommon
20 {
21 class SnippetsManager;
22 struct SnippetInfo;
23 /**
24  * @author Robert Gruber
25  */
26 class MAILCOMMON_EXPORT SnippetTreeView : public QTreeView
27 {
28  Q_OBJECT
29 public:
30  explicit SnippetTreeView(KActionCollection *actionCollection, QWidget *parent = nullptr);
31  ~SnippetTreeView() override;
32 
33  MailCommon::SnippetsManager *snippetsManager() const;
34 
35 protected:
36  void contextMenuEvent(QContextMenuEvent *) override;
37  void dropEvent(QDropEvent *) override;
38 
39 Q_SIGNALS:
40  void insertSnippetInfo(const SnippetInfo &info);
41 
42 private:
43  MailCommon::SnippetsManager *mSnippetsManager = nullptr;
44 };
45 }
The SnippetsManager class.
The SnippetInfo struct.
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Dec 2 2023 04:03:35 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.