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
KPimTextEdit
Commits
3e6efdf4
Commit
3e6efdf4
authored
Sep 17, 2021
by
Laurent Montel
😁
Browse files
Trimmed string before searching emoticon
parent
fa91f252
Pipeline
#81049
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/emoticon/emoticonunicodetab.cpp
View file @
3e6efdf4
...
@@ -32,12 +32,13 @@ EmoticonUnicodeTab::~EmoticonUnicodeTab()
...
@@ -32,12 +32,13 @@ EmoticonUnicodeTab::~EmoticonUnicodeTab()
void
EmoticonUnicodeTab
::
searchUnicode
(
const
QString
&
str
)
void
EmoticonUnicodeTab
::
searchUnicode
(
const
QString
&
str
)
{
{
bool
searchVisible
=
!
str
.
trimmed
().
isEmpty
();
const
QString
trimmedStr
{
str
.
trimmed
()};
bool
searchVisible
=
!
trimmedStr
.
isEmpty
();
setTabVisible
(
mSearchTabIndex
,
searchVisible
);
setTabVisible
(
mSearchTabIndex
,
searchVisible
);
if
(
searchVisible
)
{
if
(
searchVisible
)
{
setCurrentIndex
(
mSearchTabIndex
);
setCurrentIndex
(
mSearchTabIndex
);
}
}
mEmoticonUnicodeSearchProxyModel
->
setFilterFixedString
(
s
tr
);
mEmoticonUnicodeSearchProxyModel
->
setFilterFixedString
(
trimmedS
tr
);
}
}
void
EmoticonUnicodeTab
::
createSearchTab
()
void
EmoticonUnicodeTab
::
createSearchTab
()
...
...
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