Mailcommon
snippettreeview.cpp
30 connect(mSnippetsManager, &MailCommon::SnippetsManager::insertSnippetInfo, this, &SnippetTreeView::insertSnippetInfo);
35 connect(this, &QAbstractItemView::activated, mSnippetsManager->insertSnippetAction(), &QAction::trigger);
36 connect(mSnippetsManager->model(), &QAbstractItemModel::rowsInserted, this, &QTreeView::expandAll);
37 connect(mSnippetsManager->model(), &QAbstractItemModel::rowsRemoved, this, &QTreeView::expandAll);
QString selectedName() const
Returns the name of the currently selected snippet or snippet group.
Definition snippetsmanager.cpp:675
QAction * editSnippetAction() const
Returns the action that handles editing the currently selected snippet.
Definition snippetsmanager.cpp:636
bool snippetGroupSelected() const
Returns whether the currently selected item is a snippet group.
Definition snippetsmanager.cpp:666
QAction * deleteSnippetAction() const
Returns the action that handles deleting the currently selected snippet.
Definition snippetsmanager.cpp:641
QAction * addSnippetAction() const
Returns the action that handles adding new snippets.
Definition snippetsmanager.cpp:631
QAction * addSnippetGroupAction() const
Returns the action that handles adding new snippet groups.
Definition snippetsmanager.cpp:646
QAction * insertSnippetAction() const
Returns the action that handles inserting a snippet into the editor.
Definition snippetsmanager.cpp:661
QAction * deleteSnippetGroupAction() const
Returns the action that handles deleting the currently selected snippet group.
Definition snippetsmanager.cpp:656
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
QAction * editSnippetGroupAction() const
Returns the action that handles editing the currently selected snippet group.
Definition snippetsmanager.cpp:651
QString i18n(const char *text, const TYPE &arg...)
void rowsInserted(const QModelIndex &parent, int first, int last)
void rowsRemoved(const QModelIndex &parent, int first, int last)
void activated(const QModelIndex &index)
virtual bool event(QEvent *event) override
void trigger()
bool hasSelection() const const
MoveAction
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
void expandAll()
void hide()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.