mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 16:07:23 -06:00
Fix coding style (Issue #2192).
This commit is contained in:
committed by
sledgehammer999
parent
1f00d2e5d7
commit
4edc073373
@@ -30,8 +30,8 @@
|
||||
#include <QDomDocument>
|
||||
#include <QDomNode>
|
||||
#include <QDomElement>
|
||||
#include <QProcess>
|
||||
#include <QDir>
|
||||
#include <QProcess>
|
||||
#include <QDebug>
|
||||
|
||||
#include "base/utils/fs.h"
|
||||
@@ -62,8 +62,8 @@ static inline void removePythonScriptIfExists(const QString &scriptPath)
|
||||
const QHash<QString, QString> SearchEngine::m_categoryNames = SearchEngine::initializeCategoryNames();
|
||||
|
||||
SearchEngine::SearchEngine()
|
||||
: m_searchStopped(false)
|
||||
, m_updateUrl(QString("https://raw.github.com/qbittorrent/qBittorrent/master/src/searchengine/%1/engines/").arg(Utils::Misc::pythonVersion() >= 3 ? "nova3" : "nova"))
|
||||
: m_updateUrl(QString("https://raw.github.com/qbittorrent/qBittorrent/master/src/searchengine/%1/engines/").arg(Utils::Misc::pythonVersion() >= 3 ? "nova3" : "nova"))
|
||||
, m_searchStopped(false)
|
||||
{
|
||||
updateNova();
|
||||
|
||||
@@ -71,7 +71,7 @@ SearchEngine::SearchEngine()
|
||||
m_searchProcess->setEnvironment(QProcess::systemEnvironment());
|
||||
connect(m_searchProcess, SIGNAL(started()), this, SIGNAL(searchStarted()));
|
||||
connect(m_searchProcess, SIGNAL(readyReadStandardOutput()), this, SLOT(readSearchOutput()));
|
||||
connect(m_searchProcess, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(processFinished(int, QProcess::ExitStatus)));
|
||||
connect(m_searchProcess, SIGNAL(finished(int)), this, SLOT(processFinished(int)));
|
||||
|
||||
m_searchTimeout = new QTimer(this);
|
||||
m_searchTimeout->setSingleShot(true);
|
||||
@@ -315,7 +315,7 @@ QString SearchEngine::engineLocation()
|
||||
// Slot called when QProcess is Finished
|
||||
// QProcess can be finished for 3 reasons :
|
||||
// Error | Stopped by user | Finished normally
|
||||
void SearchEngine::processFinished(int exitcode, QProcess::ExitStatus)
|
||||
void SearchEngine::processFinished(int exitcode)
|
||||
{
|
||||
m_searchTimeout->stop();
|
||||
|
||||
|
||||
@@ -30,11 +30,12 @@
|
||||
#ifndef SEARCHENGINE_H
|
||||
#define SEARCHENGINE_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QHash>
|
||||
#include <QStringList>
|
||||
#include <QProcess>
|
||||
#include <QList>
|
||||
|
||||
class QProcess;
|
||||
class QTimer;
|
||||
|
||||
struct PluginInfo
|
||||
@@ -104,7 +105,7 @@ signals:
|
||||
private slots:
|
||||
void onTimeout();
|
||||
void readSearchOutput();
|
||||
void processFinished(int exitcode, QProcess::ExitStatus);
|
||||
void processFinished(int exitcode);
|
||||
void versionInfoDownloaded(const QString &url, const QByteArray &data);
|
||||
void versionInfoDownloadFailed(const QString &url, const QString &reason);
|
||||
void pluginDownloaded(const QString &url, QString filePath);
|
||||
|
||||
Reference in New Issue
Block a user