mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 00:33:09 -07:00
Replace QVariantMap by QVariantHash
This commit is contained in:
parent
7f300b757f
commit
f6ee96ed83
3 changed files with 23 additions and 23 deletions
|
@ -79,7 +79,7 @@ void LogController::mainAction()
|
|||
|| (msg.type == Log::CRITICAL && isCritical)))
|
||||
continue;
|
||||
|
||||
msgList.append(QVariantMap {
|
||||
msgList.append(QVariantHash {
|
||||
{KEY_LOG_ID, msg.id},
|
||||
{KEY_LOG_TIMESTAMP, msg.timestamp},
|
||||
{KEY_LOG_MSG_TYPE, msg.type},
|
||||
|
@ -113,7 +113,7 @@ void LogController::peersAction()
|
|||
QVariantList peerList;
|
||||
|
||||
for (const Log::Peer &peer : asConst(logger->getPeers(lastKnownId))) {
|
||||
peerList.append(QVariantMap {
|
||||
peerList.append(QVariantHash {
|
||||
{KEY_LOG_ID, peer.id},
|
||||
{KEY_LOG_TIMESTAMP, peer.timestamp},
|
||||
{KEY_LOG_PEER_IP, peer.ip},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue