Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kalendar
Commits
c8527c16
Commit
c8527c16
authored
Oct 16, 2022
by
Claudio Cambra
Browse files
Move Filter setter methods into slots
Signed-off-by:
Claudio Cambra
<
claudio.cambra@kde.org
>
parent
881dbf50
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/filter.h
View file @
c8527c16
...
...
@@ -3,6 +3,9 @@
#include
<QObject>
/**
* This class is used to enable cross-compatible filtering of data in models.
*/
class
Filter
:
public
QObject
{
Q_OBJECT
...
...
@@ -15,11 +18,11 @@ public:
QStringList
tags
()
const
;
QString
name
()
const
;
void
setCollectionId
(
qint64
collectionId
);
void
setTags
(
QStringList
tags
);
public
Q_SLOTS
:
void
setCollectionId
(
const
qint64
collectionId
);
void
setTags
(
const
QStringList
tags
);
void
setName
(
const
QString
&
name
);
public
Q_SLOTS
:
void
toggleFilterTag
(
const
QString
tagName
);
void
reset
();
void
removeTag
(
const
QString
&
tagName
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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