Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
PIM MailImporter
Commits
b28a2b08
Commit
b28a2b08
authored
Jan 15, 2021
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QString::split(..., Qt::SplitBehavior, ...) is already in Qt 5.14
parent
698a34ae
Pipeline
#47725
passed with stage
in 13 minutes and 26 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
24 deletions
+0
-24
src/mailimporter/filters/filterbalsa.cpp
src/mailimporter/filters/filterbalsa.cpp
+0
-4
src/mailimporter/filters/filterevolution_v3.cpp
src/mailimporter/filters/filterevolution_v3.cpp
+0
-4
src/mailimporter/filters/filterkmail_maildir.cpp
src/mailimporter/filters/filterkmail_maildir.cpp
+0
-4
src/mailimporter/filters/filtermailapp.cpp
src/mailimporter/filters/filtermailapp.cpp
+0
-4
src/mailimporter/filters/filterpmail.cpp
src/mailimporter/filters/filterpmail.cpp
+0
-4
src/mailimporterakonadi/filterimporterakonadi.cpp
src/mailimporterakonadi/filterimporterakonadi.cpp
+0
-4
No files found.
src/mailimporter/filters/filterbalsa.cpp
View file @
b28a2b08
...
...
@@ -167,11 +167,7 @@ void FilterBalsa::importFiles(const QString &dirName)
_path
=
i18nc
(
"define folder name where we import evolution mails"
,
"Evolution-Import"
);
QString
_tmp
=
dir
.
filePath
(
*
mailFile
);
_tmp
.
remove
(
mailDir
(),
Qt
::
CaseSensitive
);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
QStringList
subFList
=
_tmp
.
split
(
QLatin1Char
(
'/'
),
QString
::
SkipEmptyParts
);
#else
QStringList
subFList
=
_tmp
.
split
(
QLatin1Char
(
'/'
),
Qt
::
SkipEmptyParts
);
#endif
QStringList
::
ConstIterator
end
(
subFList
.
end
());
for
(
QStringList
::
ConstIterator
it
=
subFList
.
constBegin
();
it
!=
end
;
++
it
)
{
QString
_cat
=
*
it
;
...
...
src/mailimporter/filters/filterevolution_v3.cpp
View file @
b28a2b08
...
...
@@ -164,11 +164,7 @@ void FilterEvolution_v3::importFiles(const QString &dirName)
_path
=
i18nc
(
"define folder name where we import evolution mails"
,
"Evolution-Import"
);
QString
_tmp
=
dir
.
filePath
(
*
mailFile
);
_tmp
.
remove
(
mailDir
(),
Qt
::
CaseSensitive
);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
QStringList
subFList
=
_tmp
.
split
(
QLatin1Char
(
'/'
),
QString
::
SkipEmptyParts
);
#else
QStringList
subFList
=
_tmp
.
split
(
QLatin1Char
(
'/'
),
Qt
::
SkipEmptyParts
);
#endif
QStringList
::
ConstIterator
end
(
subFList
.
end
());
for
(
QStringList
::
ConstIterator
it
=
subFList
.
constBegin
();
it
!=
end
;
++
it
)
{
QString
_cat
=
*
it
;
...
...
src/mailimporter/filters/filterkmail_maildir.cpp
View file @
b28a2b08
...
...
@@ -151,11 +151,7 @@ void FilterKMail_maildir::importFiles(const QString &dirName)
_path
=
QStringLiteral
(
"KMail-Import"
);
QString
_tmp
=
dir
.
filePath
(
*
mailFile
);
_tmp
.
remove
(
mailDir
(),
Qt
::
CaseSensitive
);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
const
QStringList
subFList
=
_tmp
.
split
(
QLatin1Char
(
'/'
),
QString
::
SkipEmptyParts
);
#else
const
QStringList
subFList
=
_tmp
.
split
(
QLatin1Char
(
'/'
),
Qt
::
SkipEmptyParts
);
#endif
QStringList
::
ConstIterator
end
(
subFList
.
end
());
for
(
QStringList
::
ConstIterator
it
=
subFList
.
constBegin
();
it
!=
end
;
++
it
)
{
QString
_cat
=
*
it
;
...
...
src/mailimporter/filters/filtermailapp.cpp
View file @
b28a2b08
...
...
@@ -71,11 +71,7 @@ void FilterMailApp::importMails(const QString &maildir)
}
else
{
QFileInfo
filenameInfo
(
*
filename
);
qCDebug
(
MAILIMPORTER_LOG
)
<<
"importing filename"
<<
*
filename
;
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
QStringList
name
=
(
*
filename
).
split
(
QLatin1Char
(
'/'
),
QString
::
SkipEmptyParts
);
#else
QStringList
name
=
(
*
filename
).
split
(
QLatin1Char
(
'/'
),
Qt
::
SkipEmptyParts
);
#endif
QString
folderName
(
name
[
name
.
count
()
-
2
]);
filterInfo
()
->
setCurrent
(
0
);
...
...
src/mailimporter/filters/filterpmail.cpp
View file @
b28a2b08
...
...
@@ -283,11 +283,7 @@ bool FilterPMail::parseFolderMatrix(const QString &chosendir)
}
QString
tmpArray
[
5
];
tmpRead
.
remove
(
tmpRead
.
length
()
-
2
,
2
);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
QStringList
tmpList
=
QString
::
fromLatin1
(
tmpRead
).
split
(
QLatin1Char
(
','
),
QString
::
SkipEmptyParts
);
#else
QStringList
tmpList
=
QString
::
fromLatin1
(
tmpRead
).
split
(
QLatin1Char
(
','
),
Qt
::
SkipEmptyParts
);
#endif
int
i
=
0
;
QStringList
::
ConstIterator
end
(
tmpList
.
constEnd
());
for
(
QStringList
::
ConstIterator
it
=
tmpList
.
constBegin
();
it
!=
end
;
++
it
,
++
i
)
{
...
...
src/mailimporterakonadi/filterimporterakonadi.cpp
View file @
b28a2b08
...
...
@@ -135,11 +135,7 @@ Akonadi::Collection FilterImporterAkonadi::parseFolderString(const QString &fold
}
// The folder hasn't yet been created, create it now.
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
const
QStringList
folderList
=
folderParseString
.
split
(
QLatin1Char
(
'/'
),
QString
::
SkipEmptyParts
);
#else
const
QStringList
folderList
=
folderParseString
.
split
(
QLatin1Char
(
'/'
),
Qt
::
SkipEmptyParts
);
#endif
bool
isFirst
=
true
;
QString
folderBuilder
;
Akonadi
::
Collection
lastCollection
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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