mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-30 12:26:39 -05:00
Replaced deprecated QRegExp by QRegularExpression
This commit is contained in:
parent
f0286740f4
commit
13b294838b
8 changed files with 26 additions and 18 deletions
|
|
@ -27,7 +27,7 @@
|
|||
#include <QFileOpenEvent>
|
||||
#include <QLocale>
|
||||
#include <QLocalSocket>
|
||||
#include <QRegExp>
|
||||
#include <QRegularExpression>
|
||||
#include <QSharedMemory>
|
||||
#include <QShortcut>
|
||||
#include <QString>
|
||||
|
|
@ -311,8 +311,8 @@ void RsApplication::customizeDateFormat()
|
|||
QLocale locale = QLocale(); // set to default locale
|
||||
/* get long date format without weekday */
|
||||
options.dateformat = locale.dateFormat(QLocale::LongFormat);
|
||||
options.dateformat.replace(QRegExp("^dddd,*[^ ]* *('[^']+' )*"), "");
|
||||
options.dateformat.replace(QRegExp(",* *dddd"), "");
|
||||
options.dateformat.replace(QRegularExpression("^dddd,*[^ ]* *('[^']+' )*"), "");
|
||||
options.dateformat.replace(QRegularExpression(",* *dddd"), "");
|
||||
options.dateformat = options.dateformat.trimmed();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue