Commit 561e46fa authored by Ahmad Samir's avatar Ahmad Samir

Port QRegExp to QRegularExpression

parent bf30d178
......@@ -333,7 +333,7 @@ namespace Oxygen
bool ExceptionListWidget::checkException( InternalSettingsPtr exception )
{
while( exception->exceptionPattern().isEmpty() || !QRegExp( exception->exceptionPattern() ).isValid() )
while( exception->exceptionPattern().isEmpty() || !QRegularExpression( exception->exceptionPattern() ).isValid() )
{
QMessageBox::warning( this, i18n( "Warning - Oxygen Settings" ), i18n("Regular Expression syntax is incorrect") );
......
......@@ -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; }
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment