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
Plasma
Milou
Commits
e0a0b34c
Commit
e0a0b34c
authored
Oct 09, 2020
by
Alexander Lohnau
💬
Browse files
Remove Qt 5.15 version checks
parent
3ec02ea0
Changes
3
Hide whitespace changes
Inline
Side-by-side
lib/previewplugin.cpp
View file @
e0a0b34c
...
...
@@ -82,11 +82,7 @@ QQmlContext* PreviewPlugin::context()
void
PreviewPlugin
::
highlight
(
const
QTextDocument
*
doc
)
const
{
QTextCursor
cursor
;
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
const
QStringList
highlights
=
highlight
().
split
(
QLatin1Char
(
' '
),
QString
::
SkipEmptyParts
);
#else
const
QStringList
highlights
=
highlight
().
split
(
QLatin1Char
(
' '
),
Qt
::
SkipEmptyParts
);
#endif
for
(
const
QString
&
text
:
highlights
)
{
while
(
1
)
{
cursor
=
doc
->
find
(
text
,
cursor
);
...
...
lib/resultsmodel.cpp
View file @
e0a0b34c
...
...
@@ -52,11 +52,7 @@ public:
~
SortProxyModel
()
override
=
default
;
void
setQueryString
(
const
QString
&
queryString
)
{
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
const
QStringList
words
=
queryString
.
split
(
QLatin1Char
(
' '
),
QString
::
SkipEmptyParts
);
#else
const
QStringList
words
=
queryString
.
split
(
QLatin1Char
(
' '
),
Qt
::
SkipEmptyParts
);
#endif
if
(
m_words
!=
words
)
{
m_words
=
words
;
invalidate
();
...
...
lib/sourcesmodel.cpp
View file @
e0a0b34c
...
...
@@ -272,11 +272,7 @@ void SourcesModel::slotMatchesChanged(const QList<Plasma::QueryMatch>& l)
// that do not
// The rest are given the same preference as given by the runners.
const
QString
simplifiedQuery
=
m_queryString
.
simplified
();
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
const
auto
words
=
simplifiedQuery
.
splitRef
(
QLatin1Char
(
' '
),
QString
::
SkipEmptyParts
);
#else
const
auto
words
=
simplifiedQuery
.
splitRef
(
QLatin1Char
(
' '
),
Qt
::
SkipEmptyParts
);
#endif
QSet
<
QString
>
higherTypes
;
for
(
const
QString
&
type
:
qAsConst
(
m_types
))
{
...
...
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