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
System
KSystemLog
Commits
41d6bda0
Commit
41d6bda0
authored
Jul 31, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it compile without deprecated method
parent
0389d2af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/modes/journald/journaldNetworkAnalyzer.cpp
src/modes/journald/journaldNetworkAnalyzer.cpp
+5
-1
No files found.
src/modes/journald/journaldNetworkAnalyzer.cpp
View file @
41d6bda0
...
...
@@ -116,7 +116,11 @@ void JournaldNetworkAnalyzer::httpFinished()
}
}
else
{
QString
identifiersString
=
QString
::
fromUtf8
(
data
);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
QStringList
identifiersList
=
identifiersString
.
split
(
QChar
::
fromLatin1
(
'\n'
),
QString
::
SkipEmptyParts
);
#else
QStringList
identifiersList
=
identifiersString
.
split
(
QChar
::
fromLatin1
(
'\n'
),
Qt
::
SkipEmptyParts
);
#endif
switch
(
m_currentRequest
)
{
case
RequestType
::
SyslogIds
:
m_syslogIdentifiers
=
identifiersList
;
...
...
@@ -283,7 +287,7 @@ void JournaldNetworkAnalyzer::sendRequest(RequestType requestType)
m_reply
=
m_networkManager
.
get
(
request
);
connect
(
m_reply
,
&
QNetworkReply
::
finished
,
this
,
&
JournaldNetworkAnalyzer
::
httpFinished
);
connect
(
m_reply
,
&
QNetworkReply
::
readyRead
,
this
,
&
JournaldNetworkAnalyzer
::
httpReadyRead
);
connect
(
m_reply
,
QOverload
<
QNetworkReply
::
NetworkError
>::
of
(
&
QNetworkReply
::
error
),
this
,
&
JournaldNetworkAnalyzer
::
httpError
);
connect
(
m_reply
,
QOverload
<
QNetworkReply
::
NetworkError
>::
of
(
&
QNetworkReply
::
error
Occurred
),
this
,
&
JournaldNetworkAnalyzer
::
httpError
);
}
void
JournaldNetworkAnalyzer
::
updateStatus
(
const
QString
&
status
)
...
...
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