Mailcommon
snippettreeview.cpp
29 connect(mSnippetsManager, &MailCommon::SnippetsManager::insertSnippetInfo, this, &SnippetTreeView::insertSnippetInfo);
34 connect(this, &QAbstractItemView::activated, mSnippetsManager->insertSnippetAction(), &QAction::trigger);
35 connect(mSnippetsManager->model(), &QAbstractItemModel::rowsInserted, this, &QTreeView::expandAll);
36 connect(mSnippetsManager->model(), &QAbstractItemModel::rowsRemoved, this, &QTreeView::expandAll);
QAction * deleteSnippetAction() const
Returns the action that handles deleting the currently selected snippet.
Definition: snippetsmanager.cpp:641
QAction * editSnippetAction() const
Returns the action that handles editing the currently selected snippet.
Definition: snippetsmanager.cpp:636
virtual void dropEvent(QDropEvent *event) override
bool hasSelection() const const
virtual bool event(QEvent *event) override
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QItemSelectionModel * selectionModel() const
Returns the selection model that is used by the manager to select the snippet or snippet group to wor...
Definition: snippetsmanager.cpp:626
void hide()
QAction * addSnippetGroupAction() const
Returns the action that handles adding new snippet groups.
Definition: snippetsmanager.cpp:646
QAction * deleteSnippetGroupAction() const
Returns the action that handles deleting the currently selected snippet group.
Definition: snippetsmanager.cpp:656
void expandAll()
QString selectedName() const
Returns the name of the currently selected snippet or snippet group.
Definition: snippetsmanager.cpp:675
QAction * insertSnippetAction() const
Returns the action that handles inserting a snippet into the editor.
Definition: snippetsmanager.cpp:661
QString i18n(const char *text, const TYPE &arg...)
QAction * addSnippetAction() const
Returns the action that handles adding new snippets.
Definition: snippetsmanager.cpp:631
void activated(const QModelIndex &index)
void trigger()
MoveAction
bool snippetGroupSelected() const
Returns whether the currently selected item is a snippet group.
Definition: snippetsmanager.cpp:666
void rowsInserted(const QModelIndex &parent, int first, int last)
void rowsRemoved(const QModelIndex &parent, int first, int last)
QAction * editSnippetGroupAction() const
Returns the action that handles editing the currently selected snippet group.
Definition: snippetsmanager.cpp:651
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Jun 6 2023 03:57:38 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Jun 6 2023 03:57:38 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.