@@ -240,7 +240,7 @@ const QMap<NgPost::GROUP_POLICY, QString> NgPost::sGroupPolicies = {
240240 {GROUP_POLICY::EACH_FILE, " each_file" }
241241};
242242
243- #ifdef __DEBUG__
243+ #if __DEBUG__ && QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
244244#include < QNetworkConfigurationManager>
245245#endif
246246NgPost::NgPost (int &argc, char *argv[]):
@@ -1818,22 +1818,22 @@ void NgPost::setNzbName(const QFileInfo &fileInfo)
18181818 _nzbName = fileInfo.isDir () ? QDir (fileInfo.absoluteFilePath ()).dirName () : fileInfo.completeBaseName ();
18191819 if (_removeAccentsOnNzbFileName)
18201820 {
1821- _nzbName.replace (QRegExp (" [ÀÁÂÃÄÅ]" ), " A" );
1822- _nzbName.replace (QRegExp (" [àáâãäå]" ), " a" );
1821+ _nzbName.replace (QRegularExpression (" [ÀÁÂÃÄÅ]" ), " A" );
1822+ _nzbName.replace (QRegularExpression (" [àáâãäå]" ), " a" );
18231823 _nzbName.replace (" Ç" ," C" );
18241824 _nzbName.replace (" ç" ," c" );
1825- _nzbName.replace (QRegExp (" [ÈÉÊË]" ), " E" );
1826- _nzbName.replace (QRegExp (" [èéêë]" ), " e" );
1827- _nzbName.replace (QRegExp (" [ÌÍÎÏ]" ), " I" );
1828- _nzbName.replace (QRegExp (" [ìíîï]" ), " i" );
1825+ _nzbName.replace (QRegularExpression (" [ÈÉÊË]" ), " E" );
1826+ _nzbName.replace (QRegularExpression (" [èéêë]" ), " e" );
1827+ _nzbName.replace (QRegularExpression (" [ÌÍÎÏ]" ), " I" );
1828+ _nzbName.replace (QRegularExpression (" [ìíîï]" ), " i" );
18291829 _nzbName.replace (" Ñ" ," N" );
18301830 _nzbName.replace (" ñ" ," n" );
1831- _nzbName.replace (QRegExp (" [ÒÓÔÕÖØ]" ), " O" );
1832- _nzbName.replace (QRegExp (" [òóôõöø]" ), " o" );
1833- _nzbName.replace (QRegExp (" [ÙÚÛÜ]" ), " U" );
1834- _nzbName.replace (QRegExp (" [ùúûü]" ), " u" );
1835- _nzbName.replace (QRegExp (" [ÿý]" ), " y" );
1836- _nzbName.replace (QRegExp (" [^A-Za-z0-9\\ .,_\\ -\\ (\\ )\\ [\\ ]\\ {\\ }!#&'\\ + ]" ), " " );
1831+ _nzbName.replace (QRegularExpression (" [ÒÓÔÕÖØ]" ), " O" );
1832+ _nzbName.replace (QRegularExpression (" [òóôõöø]" ), " o" );
1833+ _nzbName.replace (QRegularExpression (" [ÙÚÛÜ]" ), " U" );
1834+ _nzbName.replace (QRegularExpression (" [ùúûü]" ), " u" );
1835+ _nzbName.replace (QRegularExpression (" [ÿý]" ), " y" );
1836+ _nzbName.replace (QRegularExpression (" [^A-Za-z0-9\\ .,_\\ -\\ (\\ )\\ [\\ ]\\ {\\ }!#&'\\ + ]" ), " " );
18371837 }
18381838}
18391839
0 commit comments