Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
648a6a38
Commit
648a6a38
authored
Jun 20, 2014
by
Mark Morschhäuser
Browse files
Qt5: QUrl addQueryItem moved to QUrlQuery
parent
032c41f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/deckstats_interface.cpp
View file @
648a6a38
...
...
@@ -7,6 +7,10 @@
#include
<QMessageBox>
#include
<QDesktopServices>
#if QT_VERSION >= 0x050000
#include
<QUrlQuery>
#endif
DeckStatsInterface
::
DeckStatsInterface
(
QObject
*
parent
)
:
QObject
(
parent
)
{
...
...
@@ -42,7 +46,13 @@ void DeckStatsInterface::queryFinished(QNetworkReply *reply)
void
DeckStatsInterface
::
analyzeDeck
(
DeckList
*
deck
)
{
QUrl
params
;
#if QT_VERSION < 0x050000
params
.
addQueryItem
(
"deck"
,
deck
->
writeToString_Plain
());
#else
QUrlQuery
urlQuery
;
urlQuery
.
addQueryItem
(
"deck"
,
deck
->
writeToString_Plain
());
params
.
setUrlQuery
(
urlQuery
);
#endif
QByteArray
data
;
data
.
append
(
params
.
encodedQuery
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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