Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM Messagelib
Commits
ea83a6af
Commit
ea83a6af
authored
Jun 20, 2021
by
Laurent Montel
😁
Browse files
Rename filter
parent
0f2509d8
Pipeline
#66701
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
messagelist/src/core/widgets/configurefilterswidget.cpp
View file @
ea83a6af
...
...
@@ -8,6 +8,7 @@
#include "core/filtersavedmanager.h"
#include <KLocalizedString>
#include <KMessageBox>
#include <QInputDialog>
#include <QMenu>
#include <QVBoxLayout>
using
namespace
MessageList
::
Core
;
...
...
@@ -47,7 +48,11 @@ void ConfigureFiltersWidget::slotCustomContextMenuRequested(const QPoint &pos)
QMenu
menu
(
this
);
const
QString
identifier
=
item
->
identifier
();
menu
.
addAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"edit-rename"
)),
i18n
(
"Rename"
),
this
,
[
this
,
identifier
,
item
]()
{
// TODO
QString
newName
=
QInputDialog
::
getText
(
this
,
i18n
(
"Rename Filter"
),
i18n
(
"name"
));
newName
=
newName
.
trimmed
();
if
(
!
newName
.
isEmpty
())
{
// TODO rename
}
});
menu
.
addSeparator
();
menu
.
addAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"edit-delete"
)),
i18n
(
"Remove"
),
this
,
[
this
,
identifier
,
item
]()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment