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
Oxygen
Commits
561e46fa
Commit
561e46fa
authored
Dec 07, 2020
by
Ahmad Samir
Browse files
Port QRegExp to QRegularExpression
parent
bf30d178
Changes
2
Hide whitespace changes
Inline
Side-by-side
kdecoration/config/oxygenexceptionlistwidget.cpp
View file @
561e46fa
...
...
@@ -333,7 +333,7 @@ namespace Oxygen
bool
ExceptionListWidget
::
checkException
(
InternalSettingsPtr
exception
)
{
while
(
exception
->
exceptionPattern
().
isEmpty
()
||
!
QReg
Exp
(
exception
->
exceptionPattern
()
).
isValid
()
)
while
(
exception
->
exceptionPattern
().
isEmpty
()
||
!
QReg
ularExpression
(
exception
->
exceptionPattern
()
).
isValid
()
)
{
QMessageBox
::
warning
(
this
,
i18n
(
"Warning - Oxygen Settings"
),
i18n
(
"Regular Expression syntax is incorrect"
)
);
...
...
kdecoration/oxygensettingsprovider.cpp
View file @
561e46fa
...
...
@@ -28,6 +28,7 @@
#include
<KWindowInfo>
#include
<QRegularExpression>
#include
<QTextStream>
namespace
Oxygen
...
...
@@ -132,7 +133,7 @@ namespace Oxygen
}
// check matching
if
(
QRegExp
(
internalSettings
->
exceptionPattern
()
)
.
indexIn
(
value
)
>=
0
)
if
(
value
.
contains
(
QRegularExpression
(
internalSettings
->
exceptionPattern
()
)
)
)
{
return
internalSettings
;
}
}
...
...
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