mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 09:43:07 -07:00
- Simplified and optimized json code
This commit is contained in:
parent
0d078f660a
commit
b8c79e0b5f
7 changed files with 80 additions and 123 deletions
|
@ -21,7 +21,6 @@
|
|||
|
||||
#include "eventmanager.h"
|
||||
#include "bittorrent.h"
|
||||
#include "json.h"
|
||||
#include <QDebug>
|
||||
|
||||
EventManager::EventManager(QObject *parent, bittorrent *BTSession)
|
||||
|
@ -29,12 +28,8 @@ EventManager::EventManager(QObject *parent, bittorrent *BTSession)
|
|||
{
|
||||
}
|
||||
|
||||
QVariant EventManager::getEventList() const {
|
||||
QVariantList list;
|
||||
foreach(QVariantMap event, event_list.values()) {
|
||||
list << QVariant(event);
|
||||
}
|
||||
return QVariant(list);
|
||||
QList<QVariantMap> EventManager::getEventList() const {
|
||||
return event_list.values();
|
||||
}
|
||||
|
||||
void EventManager::addedTorrent(QTorrentHandle& h)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue