mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
Replace QVariantMap by QVariantHash
This commit is contained in:
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user