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
b8aacb6b
Commit
b8aacb6b
authored
Sep 09, 2021
by
Laurent Montel
😁
Browse files
Rename methods
parent
609cf0cb
Changes
4
Hide whitespace changes
Inline
Side-by-side
messagelist/src/core/filtersavedmanager.cpp
View file @
b8aacb6b
...
...
@@ -119,7 +119,7 @@ void FilterSavedManager::removeFilter(const QString &identifier)
lst
.
clear
();
}
void
FilterSavedManager
::
renam
eFilter
(
const
QString
&
identifier
,
const
QString
&
newName
)
void
FilterSavedManager
::
updat
eFilter
(
const
QString
&
identifier
,
const
QString
&
newName
)
{
KConfigGroup
grp
(
KSharedConfig
::
openConfig
(),
"General"
);
const
int
numberFilter
=
grp
.
readEntry
(
"NumberFilter"
).
toInt
();
...
...
messagelist/src/core/filtersavedmanager.h
View file @
b8aacb6b
...
...
@@ -31,7 +31,7 @@ public:
static
FilterSavedManager
*
self
();
void
removeFilter
(
const
QString
&
identifier
);
void
renam
eFilter
(
const
QString
&
identifier
,
const
QString
&
newName
);
void
updat
eFilter
(
const
QString
&
identifier
,
const
QString
&
newName
);
Q_REQUIRED_RESULT
Filter
*
loadFilter
(
const
QString
&
identifier
);
Q_REQUIRED_RESULT
QStringList
existingFilterNames
()
const
;
...
...
messagelist/src/core/widgets/configurefilterswidget.cpp
View file @
b8aacb6b
...
...
@@ -54,7 +54,7 @@ void ConfigureFiltersWidget::slotCustomContextMenuRequested(const QPoint &pos)
if
(
ok
)
{
newName
=
newName
.
trimmed
();
if
(
!
newName
.
isEmpty
()
&&
(
newName
!=
item
->
text
()))
{
renam
eFilterInfo
(
identifier
,
newName
);
updat
eFilterInfo
(
identifier
,
newName
);
item
->
setText
(
newName
);
}
}
...
...
@@ -77,10 +77,10 @@ void ConfigureFiltersWidget::removeFilterInfo(const QString &identifier)
}
}
void
ConfigureFiltersWidget
::
renam
eFilterInfo
(
const
QString
&
identifier
,
const
QString
&
newName
)
void
ConfigureFiltersWidget
::
updat
eFilterInfo
(
const
QString
&
identifier
,
const
QString
&
newName
)
{
if
(
!
identifier
.
isEmpty
())
{
FilterSavedManager
::
self
()
->
renam
eFilter
(
identifier
,
newName
);
FilterSavedManager
::
self
()
->
updat
eFilter
(
identifier
,
newName
);
}
}
...
...
messagelist/src/core/widgets/configurefilterswidget.h
View file @
b8aacb6b
...
...
@@ -35,7 +35,7 @@ public:
~
ConfigureFiltersWidget
()
override
;
private:
void
renam
eFilterInfo
(
const
QString
&
identifier
,
const
QString
&
newName
);
void
updat
eFilterInfo
(
const
QString
&
identifier
,
const
QString
&
newName
);
void
slotCustomContextMenuRequested
(
const
QPoint
&
pos
);
void
removeFilterInfo
(
const
QString
&
identifier
);
void
init
();
...
...
Write
Preview
Supports
Markdown
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