Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nemo-qml-plugin-contacts
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kimmoli
nemo-qml-plugin-contacts
Commits
6d2dcf3c
Commit
6d2dcf3c
authored
Jun 10, 2016
by
mvogt
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mer-1595'
parents
b457bc44
cab516b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/seasidefilteredmodel.cpp
src/seasidefilteredmodel.cpp
+8
-2
No files found.
src/seasidefilteredmodel.cpp
View file @
6d2dcf3c
...
...
@@ -240,8 +240,14 @@ QList<QStringList> extractSearchTerms(const QString &string)
const
int
position
=
it
.
next
();
const
QString
word
(
lowered
.
mid
(
position
,
(
it
.
peekNext
()
-
position
)).
trimmed
());
if
(
!
word
.
isEmpty
())
{
// Test all searches in lower case
rv
.
append
(
tokenize
(
word
));
const
bool
apostrophe
(
word
.
length
()
==
1
&&
word
.
at
(
0
)
==
QChar
(
'\''
));
if
(
apostrophe
&&
!
rv
.
isEmpty
())
{
// Special case - a trailing apostrophe is not counted as a component of the
// previous word, although it is included in the word if there is a following character
rv
.
last
().
last
().
append
(
word
);
}
else
{
rv
.
append
(
tokenize
(
word
));
}
}
}
...
...
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