mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
Fix lupdate errors
I suspect lupdate isn't smart enough to figure out what tr() is suppose to do, so just make it a static function in class. The error was: tr() cannot be called without context
This commit is contained in:
committed by
sledgehammer999
parent
85af8547f7
commit
66982c5524
@@ -30,10 +30,11 @@
|
||||
#ifndef NET_DOWNLOADHANDLER_H
|
||||
#define NET_DOWNLOADHANDLER_H
|
||||
|
||||
#include <QNetworkReply>
|
||||
#include <QObject>
|
||||
|
||||
#include "downloadmanager.h"
|
||||
|
||||
class QNetworkReply;
|
||||
class QUrl;
|
||||
|
||||
namespace Net
|
||||
@@ -68,6 +69,8 @@ namespace Net
|
||||
void assignNetworkReply(QNetworkReply *reply);
|
||||
void handleRedirection(QUrl newUrl);
|
||||
|
||||
static QString errorCodeToString(QNetworkReply::NetworkError status);
|
||||
|
||||
QNetworkReply *m_reply;
|
||||
DownloadManager *m_manager;
|
||||
const DownloadRequest m_downloadRequest;
|
||||
|
||||
Reference in New Issue
Block a user